c99_math.h: add defines for M_PI, M_E, M_LOG2E
authorBrian Paul <brianp@vmware.com>
Thu, 26 Feb 2015 19:31:45 +0000 (12:31 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 27 Feb 2015 14:04:49 +0000 (07:04 -0700)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89342
Signed-off-by: Brian Paul <brianp@vmware.com>
include/c99_math.h

index 0a359ebb7628224dd911c8517f3b5e462edc0dbe..35173c68d1c0637c90961f392dc488672d1aae2d 100644 (file)
@@ -144,4 +144,17 @@ llrintf(float f)
 #endif
 
 
+#ifndef M_PI
+#define M_PI (3.14159265358979323846)
+#endif
+
+#ifndef M_E
+#define M_E (2.7182818284590452354)
+#endif
+
+#ifndef M_LOG2E
+#define M_LOG2E (1.4426950408889634074)
+#endif
+
+
 #endif /* #define _C99_MATH_H_ */