changeset 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 9a945c87f5ec
children 397d4a457dc5
files dmlib.h
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dmlib.h	Thu Oct 11 21:02:31 2012 +0300
+++ b/dmlib.h	Thu Oct 11 21:20:05 2012 +0300
@@ -86,6 +86,13 @@
 #endif
 
 
+/* Math constants
+ */
+#define DM_PI   3.14159265358f
+#define DM_PI2  6.28318530718f
+#define DM_E    2.71828182846f
+
+
 /* Fixed point math type
  */
 typedef union