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 | f07c515741c2aeeb7e61ac3ae7422ca6859f27eb (patch) | |
tree | c74f3d5ccb92561294e2806b2f3df3669d1f7f66 | |
parent | 34d0134937a2b86c84da09c17edcf9586e384da7 (diff) |
removed touch in makefile_d_fat and added the 64bit linux feature for array access
svn path=/trunk/externals/iem/iem_adaptfilt/; revision=11360
-rw-r--r-- | src/iemlib.h | 16 | ||||
-rw-r--r-- | src/makefile_d_fat | 3 |
2 files changed, 16 insertions, 3 deletions
diff --git a/src/iemlib.h b/src/iemlib.h index 973bfeb..97b088b 100644 --- a/src/iemlib.h +++ b/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/src/makefile_d_fat b/src/makefile_d_fat index a7ea321..9412256 100644 --- a/src/makefile_d_fat +++ b/src/makefile_d_fat @@ -13,7 +13,7 @@ LFLAGS = -bundle -undefined suppress -flat_namespace # the sources
-SRC = NLMS~.c \ +SRC = NLMS~.c \ NLMSCC~.c \ n_CNLMS~.c \ n_CLNLMS~.c \ @@ -39,7 +39,6 @@ all: $(OBJ) mv $(TARGET) ..
$(OBJ) : %.o : %.c
- touch $*.c
$(CC) -arch i386 -arch ppc $(CFLAGS) $(INCLUDE) -c -o $*.o $*.c |