mesa: remove powf macro
authorBrian Paul <brianp@vmware.com>
Tue, 24 Feb 2015 16:26:41 +0000 (09:26 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 24 Feb 2015 21:44:19 +0000 (14:44 -0700)
Use the wrapper in c99_math.h if needed.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/imports.h
src/mesa/main/light.c
src/mesa/tnl/t_rasterpos.c
src/mesa/tnl/t_vb_light.c

index 674761171e833e7aafad8895db016d64a94b1898..1a69fe735896a176f8ed4403ead5bed0fd5d52cd 100644 (file)
@@ -102,7 +102,6 @@ typedef union { GLfloat f; GLint i; GLuint u; } fi_type;
 #define floorf(f) ((float) floor(f))
 #define logf(f) ((float) log(f))
 
-#define powf(x,y) ((float) pow(x,y))
 #define sqrtf(f) ((float) sqrt(f))
 #endif
 
index 7a1afd95930a0421f0b2a520fd0bab18bd57b694..9db0bff49a786e57e9034e7a06f1807fb9b8084c 100644 (file)
@@ -24,6 +24,7 @@
  */
 
 
+#include "c99_math.h"
 #include "glheader.h"
 #include "imports.h"
 #include "context.h"
index 2f52bb3069f3921a052da7515e0857a59427ad8e..5945f64eb9ca0929f1079a32c22400809e12b9fa 100644 (file)
@@ -23,6 +23,7 @@
  */
 
 
+#include "c99_math.h"
 #include "main/glheader.h"
 #include "main/colormac.h"
 #include "main/feedback.h"
index 7e76ed40338a02c356f86825f91dc546be5ad856..7781b6a6c3a027456a69927e0a4e0892812b2380 100644 (file)
@@ -23,7 +23,7 @@
  */
 
 
-
+#include "c99_math.h"
 #include "main/glheader.h"
 #include "main/colormac.h"
 #include "main/light.h"