mesa: replace ONE_DIV_LN2 constant with M_LOG2E
authorMatt Turner <mattst88@gmail.com>
Fri, 6 May 2011 17:01:12 +0000 (13:01 -0400)
committerBrian Paul <brianp@vmware.com>
Fri, 6 May 2011 16:33:15 +0000 (10:33 -0600)
commitebc0b2dca0eb6510189d433851bd475475e69aa6
treefc5e61ade03ad2e24dd691a003c2d62b3b40027b
parent03615c02d81437cf546609fc6a39c6c73be39360
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 <alexdeucher@gmail.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/main/compiler.h
src/mesa/program/prog_statevars.c