summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2015-02-26 12:31:45 -0700
committerBrian Paul <brianp@vmware.com>2015-02-27 07:04:49 -0700
commit06ed81044fc6b1dee90e67de314f81150746e104 (patch)
treec38ae9e8b8f8e2154bf8eaf4b853353a34682d04 /include
parent8170eba7e7c37235bd5fad2f9adfdd0eda8e3246 (diff)
c99_math.h: add defines for M_PI, M_E, M_LOG2E
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89342 Signed-off-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'include')
-rw-r--r--include/c99_math.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/c99_math.h b/include/c99_math.h
index 0a359ebb762..35173c68d1c 100644
--- a/include/c99_math.h
+++ b/include/c99_math.h
@@ -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_ */