3 ms·
It's not the same without the original comments. Also, I don't know which is crazier, the magic number, or the fact that the code is casting a float to long bit
by skocznymroczny 6y ago
It's not the same without the original comments. Also, I don't know which is crazier, the magic number, or the fact that the code is casting a float to long bitwise and then working on it.
- sushshshsh 6y agoi = * (long * ) &y; // evil floating point bit level hacking i = 0x5f3759df - (i >> 1); // what the fuck?