aboutsummaryrefslogtreecommitdiffstats
path: root/src/gmisc/trig.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmisc/trig.c')
-rw-r--r--src/gmisc/trig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gmisc/trig.c b/src/gmisc/trig.c
index cd35bdc0..2485da85 100644
--- a/src/gmisc/trig.c
+++ b/src/gmisc/trig.c
@@ -167,7 +167,7 @@
#endif
// evil floating point bit level hacking
- i = 0x5F3759DF - (i >> 1);
+ i = 0x5F375A86 - (i >> 1); // The quake code used 0x5F3759DF but this is better.
// Convert back to a float (no binary format conversion)
#if GDISP_INVSQRT_MIXED_ENDIAN