From da61afa7388f1ce50ef612b89aba2302a052a3bb Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 24 Nov 2010 14:03:57 -0800 Subject: glsl: Use M_LOG2E constant instead of calling log2 --- src/mesa/main/compiler.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/main/compiler.h') diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h index 800eb83900..5557a3b5cb 100644 --- a/src/mesa/main/compiler.h +++ b/src/mesa/main/compiler.h @@ -358,6 +358,10 @@ static INLINE GLuint CPU_TO_LE32(GLuint x) #define M_E (2.7182818284590452354) #endif +#ifndef M_LOG2E +#define M_LOG2E (1.4426950408889634074) +#endif + #ifndef ONE_DIV_LN2 #define ONE_DIV_LN2 (1.442695040888963456) #endif -- cgit v1.2.3