diff options
author | musil <tmusil@users.sourceforge.net> | 2009-02-01 07:30:18 +0000 |
---|---|---|
committer | musil <tmusil@users.sourceforge.net> | 2009-02-01 07:30:18 +0000 |
commit | e9c0f3b6a6ec5ff6280c7955972cbbd6e336c4dd (patch) | |
tree | 8baa59caf1a4e08c718b56c44637d9224e1b52fb /src/iemlib.h | |
parent | a30cbb586a36c7f3485b46e990ef485fd8a8da58 (diff) |
changed for 64 bit array access
svn path=/trunk/externals/iem/iem_bin_ambi/; revision=10708
Diffstat (limited to 'src/iemlib.h')
-rw-r--r-- | src/iemlib.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/iemlib.h b/src/iemlib.h index 4757df9..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,16 +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 |