diff options
author | torset | 2009-01-09 15:48:43 +0000 |
---|---|---|
committer | torset | 2009-01-09 15:48:43 +0000 |
commit | 10a522e53ef2e60ea67fd32e8db4febbccfad9e2 (patch) | |
tree | 10c71302a8b88479fb88d688693482602869eb47 /src/auxiliaryFunctions/interfaces/int_find.h | |
parent | d0e7c64c1dfd1e2f2243355650436c5ebde0fdbf (diff) | |
download | scilab2c-10a522e53ef2e60ea67fd32e8db4febbccfad9e2.tar.gz scilab2c-10a522e53ef2e60ea67fd32e8db4febbccfad9e2.tar.bz2 scilab2c-10a522e53ef2e60ea67fd32e8db4febbccfad9e2.zip |
Updates Interfaces
Diffstat (limited to 'src/auxiliaryFunctions/interfaces/int_find.h')
-rw-r--r-- | src/auxiliaryFunctions/interfaces/int_find.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/auxiliaryFunctions/interfaces/int_find.h b/src/auxiliaryFunctions/interfaces/int_find.h index 0a6b4a51..742ddc06 100644 --- a/src/auxiliaryFunctions/interfaces/int_find.h +++ b/src/auxiliaryFunctions/interfaces/int_find.h @@ -15,20 +15,20 @@ #ifndef __INT_FIND_H__ #define __INT_FIND_H__ -#define s0finds0(in) sfinds(in) +#define s0finds0(in) (in == 0) ? -1 : in -#define d0findd0(in) dfinds(in) +#define d0findd0(in) (in == 0) ? -1 : in -#define c0findc0(in) cfinds(in) +#define c0findc0(in) ((creals(in) == 0) && (cimags(in) == 0)) ? -1 : in -#define z0findz0(in) zfinds(in) +#define z0findz0(in) ((zreals(in) == 0) && (zimags(in) == 0)) ? -1 : in -#define s2finds2(in,size,out) sfinda(in, size[0]*size[1], out) +#define s2finds2(in,size,out) sfinda(in, size[0]*size[1]) -#define d2findd2(in,size,out) dfinda(in, size[0]*size[1], out) +#define d2findd2(in,size,out) dfinda(in, size[0]*size[1]) -#define c2findc2(in,size,out) cfinda(in, size[0]*size[1], out) +#define c2findc2(in,size,out) cfinda(in, size[0]*size[1]) -#define z2findz2(in,size,out) zfinda(in, size[0]*size[1], out) +#define z2findz2(in,size,out) zfinda(in, size[0]*size[1]) #endif /* !__INT_FIND_H__ */ |