aboutsummaryrefslogtreecommitdiff
path: root/src/iemlib.h
diff options
context:
space:
mode:
authorGeorg Holzmann <grholzi@users.sourceforge.net>2007-01-17 18:34:49 +0000
committerGeorg Holzmann <grholzi@users.sourceforge.net>2007-01-17 18:34:49 +0000
commit0fa6c9c48772ca84ce94552e90914c9e767504eb (patch)
tree4436088b673d6cc065090ba160ff4da06101e90e /src/iemlib.h
parent381695d3d872b0687c198019ab0e9f48c81abe7c (diff)
osx fix for iemlib.h
svn path=/trunk/externals/iem/iem_delay/; revision=7362
Diffstat (limited to 'src/iemlib.h')
-rw-r--r--src/iemlib.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/iemlib.h b/src/iemlib.h
index 36d47ca..ba62f68 100644
--- a/src/iemlib.h
+++ b/src/iemlib.h
@@ -80,8 +80,13 @@ should have been by CPU type and not by operating system! */
#else
#ifdef __APPLE__
+#ifdef __BIG_ENDIAN__
#define HIOFFSET 0 /* word offset to find MSB */
#define LOWOFFSET 1 /* word offset to find LSB */
+#else
+#define HIOFFSET 1 /* word offset to find MSB */
+#define LOWOFFSET 0 /* word offset to find LSB */
+#endif
#define int32 int /* a data type that has 32 bits */
#endif /* __APPLE__ */
@@ -95,7 +100,7 @@ union tabfudge
int32 tf_i[2];
};
-#ifdef __i386__
+#if defined __i386__ || defined __x86_64__
#define IEM_DENORMAL(f) ((((*(unsigned int*)&(f))&0x60000000)==0) || \
(((*(unsigned int*)&(f))&0x60000000)==0x60000000))
/* more stringent test: anything not between 1e-19 and 1e19 in absolute val */