diff options
author | musil <tmusil@users.sourceforge.net> | 2009-05-14 15:54:23 +0000 |
---|---|---|
committer | musil <tmusil@users.sourceforge.net> | 2009-05-14 15:54:23 +0000 |
commit | 2d59ff8eece59bf1d5ed39c68734d17826ae45c6 (patch) | |
tree | b6c1ce5cd68b9dc523a614a8ae9cc16ad483669a /externals/iem | |
parent | 9c76ffcc04b5590f456a811bde2370c9bd82dc60 (diff) |
removed touch in makefile_d_fat and added the 64bit linux feature for array access
svn path=/trunk/; revision=11360
Diffstat (limited to 'externals/iem')
-rw-r--r-- | externals/iem/iem_atan2/src/iemlib.h | 16 | ||||
-rw-r--r-- | externals/iem/iem_atan2/src/makefile_d_fat | 1 |
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 |