diff options
author | inmarket <andrewh@inmarket.com.au> | 2013-11-09 19:13:01 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2013-11-09 19:13:01 +1000 |
commit | 53408e2cb3d0705f261e9756bcf6f3f6c90c3fe9 (patch) | |
tree | c73dd665e3889b660c326dab7c1efdd178ec3657 /src/gmisc | |
parent | 190113b91c7692d13fa72c8b515208e9a648c6d2 (diff) | |
download | uGFX-53408e2cb3d0705f261e9756bcf6f3f6c90c3fe9.tar.gz uGFX-53408e2cb3d0705f261e9756bcf6f3f6c90c3fe9.tar.bz2 uGFX-53408e2cb3d0705f261e9756bcf6f3f6c90c3fe9.zip |
Fix incorrect naming of GMISC_INVSQRT_... macros.
Diffstat (limited to 'src/gmisc')
-rw-r--r-- | src/gmisc/trig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gmisc/trig.c b/src/gmisc/trig.c index 2485da85..3c6dd461 100644 --- a/src/gmisc/trig.c +++ b/src/gmisc/trig.c @@ -144,7 +144,7 @@ #if GMISC_NEED_INVSQRT // Algorithm based on Quake code. - #if GDISP_INVSQRT_REAL_SLOW + #if GMISC_INVSQRT_REAL_SLOW #include <math.h> float invsqrt(float n) { return 1.0/sqrt(n); @@ -157,7 +157,7 @@ x2 = n * 0.5F; // Convert into an int32 (no binary format conversion) - #if GDISP_INVSQRT_MIXED_ENDIAN + #if GMISC_INVSQRT_MIXED_ENDIAN ((char *)&i)[0] = ((char *)&n)[3]; ((char *)&i)[1] = ((char *)&n)[2]; ((char *)&i)[2] = ((char *)&n)[1]; @@ -170,7 +170,7 @@ 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 + #if GMISC_INVSQRT_MIXED_ENDIAN ((char *)&n)[0] = ((char *)&i)[3]; ((char *)&n)[1] = ((char *)&i)[2]; ((char *)&n)[2] = ((char *)&i)[1]; |