Re:Evolutionary algorithm to find Quake III's fast inverse s...
by Orangeair on Tuesday April 08, 2014 @07:56PM
(#7556837)
Why on earth would they create a named constant for 1.5F, but not for 0x5f3759df?
[ Parent
| on HN ]
Re:Evolutionary algorithm to find Quake III's fast inverse s...
by jws on Tuesday April 08, 2014 @10:40PM
(#7557413)
What would you name it?
#define AND_THEN_A_MIRACLE_OCCURS (0x5f3759df)
Re:Evolutionary algorithm to find Quake III's fast inverse s...
by Orangeair on Wednesday April 09, 2014 @04:25AM
(#7558249)
Fair 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?
Re:Evolutionary algorithm to find Quake III's fast inverse s...
by officialjunk on Wednesday April 09, 2014 @02:44AM
(#7557977)
MAGIC_NUMBER?