5 ms·
Why on earth would they create a named constant for 1.5F, but not for 0x5f3759df?
by Orangeair 13y ago
Why on earth would they create a named constant for 1.5F, but not for 0x5f3759df?
- jws 13y agoWhat would you name it? #define AND_THEN_A_MIRACLE_OCCURS (0x5f3759df)
- officialjunk 13y agoMAGIC_NUMBER?
- Orangeair 13y agoFair enough. Still, it seems silly to name a constant THREE_HALVES. What information does that add over 1.5? What happens if you change it and it becomes wrong?