aboutsummaryrefslogtreecommitdiff
path: root/externals/iem
diff options
context:
space:
mode:
Diffstat (limited to 'externals/iem')
-rw-r--r--externals/iem/iem_atan2/src/iemlib.h16
-rw-r--r--externals/iem/iem_atan2/src/makefile_d_fat1
2 files changed, 15 insertions, 2 deletions
diff --git a/externals/iem/iem_atan2/src/iemlib.h b/externals/iem/iem_atan2/src/iemlib.h
index 973bfebc..97b088ba 100644
--- a/externals/iem/iem_atan2/src/iemlib.h
+++ b/externals/iem/iem_atan2/src/iemlib.h
@@ -1,7 +1,7 @@
/* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution.
-iemlib written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2007 */
+iemlib written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2009 */
#ifndef __IEMLIB_H__
#define __IEMLIB_H__
@@ -99,4 +99,18 @@ union tabfudge_f
#endif
+/* on 64bit systems we cannot use garray_getfloatarray... */
+#if (defined __x86_64__)
+# define iemarray_t t_word
+# define iemarray_getarray garray_getfloatwords
+# define iemarray_getfloat(pointer, index) (pointer[index].w_float)
+# define iemarray_setfloat(pointer, index, fvalue) (pointer[index].w_float = fvalue)
+#else
+# define iemarray_t t_float
+# define iemarray_getarray garray_getfloatarray
+# define iemarray_getfloat(pointer, index) (pointer[index])
+# define iemarray_setfloat(pointer, index, fvalue) (pointer[index] = fvalue)
+#endif
+
+
#endif
diff --git a/externals/iem/iem_atan2/src/makefile_d_fat b/externals/iem/iem_atan2/src/makefile_d_fat
index 9bbdee9d..ad552cd0 100644
--- a/externals/iem/iem_atan2/src/makefile_d_fat
+++ b/externals/iem/iem_atan2/src/makefile_d_fat
@@ -35,7 +35,6 @@ all: $(OBJ)
mv $(TARGET) ..
$(OBJ) : %.o : %.c
- touch $*.c
$(CC) -arch i386 -arch ppc $(CFLAGS) $(INCLUDE) -c -o $*.o $*.c