diff options
author | N.N. <krzyszcz@users.sourceforge.net> | 2005-11-21 22:16:37 +0000 |
---|---|---|
committer | N.N. <krzyszcz@users.sourceforge.net> | 2005-11-21 22:16:37 +0000 |
commit | c2014a0a771e621cec552c6ee88daddcb46d13fe (patch) | |
tree | 183540090b25920599d86cddfa03e37cefe45dec /shared/shared.h | |
parent | a1ef2f36df1754e1146a8ed50c9ac6a1b0f33697 (diff) |
cyclone alpha55 (see notes.txt for cyclone and shared)
svn path=/trunk/externals/miXed/; revision=4011
Diffstat (limited to 'shared/shared.h')
-rw-r--r-- | shared/shared.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/shared/shared.h b/shared/shared.h index a812ffe..0e60dbd 100644 --- a/shared/shared.h +++ b/shared/shared.h @@ -164,8 +164,21 @@ typedef union _shared_floatint #define SHARED_2PI 6.28318530718 #ifndef PD_BADFLOAT +#ifdef __i386__ #define PD_BADFLOAT(f) ((((*(unsigned int*)&(f))&0x7f800000)==0) || \ (((*(unsigned int*)&(f))&0x7f800000)==0x7f800000)) +#else +#define PD_BADFLOAT(f) 0 +#endif +#endif + +#ifndef PD_BIGORSMALL +#ifdef __i386__ +#define PD_BIGORSMALL(f) ((((*(unsigned int*)&(f))&0x60000000)==0) || \ + (((*(unsigned int*)&(f))&0x60000000)==0x60000000)) +#else +#define PD_BIGORSMALL(f) 0 +#endif #endif #endif |