comparison dmlib.h @ 305:036fde2fd630

Add mathematical constants DM_PI, DM_PI2 and DM_E.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 11 Oct 2012 21:20:05 +0300
parents dd9809a93425
children 9f16badc4bd3
comparison
equal deleted inserted replaced
304:9a945c87f5ec 305:036fde2fd630
82 #define BOOL bool 82 #define BOOL bool
83 #else 83 #else
84 #define BOOL int 84 #define BOOL int
85 #endif 85 #endif
86 #endif 86 #endif
87
88
89 /* Math constants
90 */
91 #define DM_PI 3.14159265358f
92 #define DM_PI2 6.28318530718f
93 #define DM_E 2.71828182846f
87 94
88 95
89 /* Fixed point math type 96 /* Fixed point math type
90 */ 97 */
91 typedef union 98 typedef union