aboutsummaryrefslogtreecommitdiff
path: root/shared/shared.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/shared.h')
-rw-r--r--shared/shared.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/shared/shared.h b/shared/shared.h
index a0bd0e6..a812ffe 100644
--- a/shared/shared.h
+++ b/shared/shared.h
@@ -163,4 +163,9 @@ typedef union _shared_floatint
#define SHARED_PI 3.14159265359
#define SHARED_2PI 6.28318530718
+#ifndef PD_BADFLOAT
+#define PD_BADFLOAT(f) ((((*(unsigned int*)&(f))&0x7f800000)==0) || \
+ (((*(unsigned int*)&(f))&0x7f800000)==0x7f800000))
+#endif
+
#endif