diff options
author | N.N. <krzyszcz@users.sourceforge.net> | 2003-08-14 14:26:06 +0000 |
---|---|---|
committer | N.N. <krzyszcz@users.sourceforge.net> | 2003-08-14 14:26:06 +0000 |
commit | 053845e60bc1f6143e7c50aa10069a18405c2161 (patch) | |
tree | a0269d1cf9c82c0551694e4d37e49cebd32881bd /shared/shared.h | |
parent | c2a6b33ed5c7686421c66fa90fe18e1d7a14b7ec (diff) |
*** empty log message ***
svn path=/trunk/externals/miXed/; revision=845
Diffstat (limited to 'shared/shared.h')
-rw-r--r-- | shared/shared.h | 5 |
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 |