Hacker News new | ask | show | jobs
by skocznymroczny 2031 days 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.
1 comments

  i = * (long * ) &y; // evil floating point bit level hacking
  i = 0x5f3759df - (i >> 1); // what the fuck?