I just bumped into a clever little code snippet used to find the inverse square root: float InvSqrt(float x){ float xhalf = 0.5f * x; int i = *(int*)&x; // store floating-point bits in integer i = 0x5f3759d5 – (i >> 1); // initial guess for Newton’s method x = *(float*)&i; // convert new bits [...]
Filed under: Share, Technology, gaming by Loki
View Comments
To study Santa Claus under the light of common sense might not be sufficient to understand this Christmas phenomenon. Relativity and quantum mechanics have broken our understanding on how the world works. These theories have helped us understand the very large and the very small. In the same manner, they may be the keys to [...]
Filed under: Just for kicks by Loki
View Comments
Got this form Paulo Coelho’s blog: Number 7 Life is sexually transmitted. Number 6 Good health is merely the slowest possible rate at which one can die. Number 5 Men have two emotions: Hungry and Horny. If you see him without an erection, make him a sandwich. Number 4 Give a person a fish and [...]
Filed under: Share by Loki
View Comments