diff options
author | Siddhesh Wani | 2015-08-06 01:10:39 +0530 |
---|---|---|
committer | Siddhesh Wani | 2015-08-06 01:10:39 +0530 |
commit | aba32804a6cbd6fb16e13e86364e643022a2941a (patch) | |
tree | 99584f3d9b76a349eff28579ae42b18f79cbe99f /src/c/operations/interfaces/int_OpMinus.h | |
parent | 4219784830b655cb0acfd14c5d19d98a33d1de91 (diff) | |
download | Scilab2C_fossee_old-aba32804a6cbd6fb16e13e86364e643022a2941a.tar.gz Scilab2C_fossee_old-aba32804a6cbd6fb16e13e86364e643022a2941a.tar.bz2 Scilab2C_fossee_old-aba32804a6cbd6fb16e13e86364e643022a2941a.zip |
Multiplication tested for new data types
Diffstat (limited to 'src/c/operations/interfaces/int_OpMinus.h')
-rw-r--r-- | src/c/operations/interfaces/int_OpMinus.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/c/operations/interfaces/int_OpMinus.h b/src/c/operations/interfaces/int_OpMinus.h index b96328e..2ea8a52 100644 --- a/src/c/operations/interfaces/int_OpMinus.h +++ b/src/c/operations/interfaces/int_OpMinus.h @@ -56,7 +56,7 @@ } -#define u82OpMinusu82(in, size, out) {int i=0; \ +#define i82OpMinusi82(in, size, out) {int i=0; \ for (i=0;i<size[0]*size[1];i++) out[i] = -in[i]; \ } @@ -65,6 +65,12 @@ for (i=0;i<size[0]*size[1];i++) out[i] = -(int16)in[i]; \ } + +#define i162OpMinui162(in, size, out) {int i=0; \ + for (i=0;i<size[0]*size[1];i++) out[i] = -(int16)in[i]; \ + } + + /* Scalar - Scalar */ #define s0s0OpMinuss0(in1,in2) sdiffs(in1,in2) @@ -237,6 +243,6 @@ #define u162u162OpMinusu162(in1,size1,in2,size2,out) u16diffa(in1, size1[0]*size1[1], in2, size2[0]*size2[1], out) -#define i162i162OpMinusu162(in1,size1,in2,size2,out) i16diffa(in1, size1[0]*size1[1], in2, size2[0]*size2[1], out) +#define i162i162OpMinusi162(in1,size1,in2,size2,out) i16diffa(in1, size1[0]*size1[1], in2, size2[0]*size2[1], out) #endif /* !__INT_OPMINUS_H__ */ |