summaryrefslogtreecommitdiff
path: root/src/c/operations/interfaces/int_OpMinus.h
diff options
context:
space:
mode:
authorSiddhesh Wani2015-08-06 01:10:39 +0530
committerSiddhesh Wani2015-08-06 01:10:39 +0530
commitaba32804a6cbd6fb16e13e86364e643022a2941a (patch)
tree99584f3d9b76a349eff28579ae42b18f79cbe99f /src/c/operations/interfaces/int_OpMinus.h
parent4219784830b655cb0acfd14c5d19d98a33d1de91 (diff)
downloadScilab2C_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.h10
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__ */