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>
This commit is contained in:
Brian Paul 2015-02-26 12:31:45 -07:00
parent 8170eba7e7
commit 06ed81044f
1 changed files with 13 additions and 0 deletions

View 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_ */