summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2011-05-06 13:01:12 -0400
committerBrian Paul <[email protected]>2011-05-06 10:33:15 -0600
commitebc0b2dca0eb6510189d433851bd475475e69aa6 (patch)
treefc5e61ade03ad2e24dd691a003c2d62b3b40027b /src/mesa/main
parent03615c02d81437cf546609fc6a39c6c73be39360 (diff)
mesa: replace ONE_DIV_LN2 constant with M_LOG2E
1/ln(2) is equivalent to log2(e), so define it as such. log2(e) = ln(e)/ln(2) = 1/ln(2) Worst of all, the definitions for M_LOG2E and ONE_DIV_LN2 (right beside each other!) weren't the same. Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Matt Turner <[email protected]> Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/compiler.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h
index e17fd0ff6fd..81e08a006f8 100644
--- a/src/mesa/main/compiler.h
+++ b/src/mesa/main/compiler.h
@@ -366,10 +366,6 @@ static INLINE GLuint CPU_TO_LE32(GLuint x)
#define M_LOG2E (1.4426950408889634074)
#endif
-#ifndef ONE_DIV_LN2
-#define ONE_DIV_LN2 (1.442695040888963456)
-#endif
-
#ifndef ONE_DIV_SQRT_LN2
#define ONE_DIV_SQRT_LN2 (1.201122408786449815)
#endif