[Mesa-dev] [PATCH] Add precision to M_PI constant
Matt Turner
mattst88 at gmail.com
Fri May 6 10:01:13 PDT 2011
Value found in my math.h header.
Reviewed-by: Alex Deucher <alexdeucher at gmail.com>
Signed-off-by: Matt Turner <mattst88 at gmail.com>
---
src/mesa/main/compiler.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h
index 81e08a0..743841b 100644
--- a/src/mesa/main/compiler.h
+++ b/src/mesa/main/compiler.h
@@ -355,7 +355,7 @@ static INLINE GLuint CPU_TO_LE32(GLuint x)
#ifndef M_PI
-#define M_PI (3.1415926536)
+#define M_PI (3.14159265358979323846)
#endif
#ifndef M_E
--
1.7.3.4
More information about the mesa-dev
mailing list