summaryrefslogtreecommitdiff
path: root/2.3-1/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
commit89454b3f15e24291e4941a44a4d8870d2d4d5727 (patch)
tree539f5899090a700dc23a25c0bf82021af3759490 /2.3-1/src/c/operations/interfaces/int_OpMinus.h
parentbb2f6a14d56f9d75a0cdf795d4df40fec3960710 (diff)
downloadScilab2C-89454b3f15e24291e4941a44a4d8870d2d4d5727.tar.gz
Scilab2C-89454b3f15e24291e4941a44a4d8870d2d4d5727.tar.bz2
Scilab2C-89454b3f15e24291e4941a44a4d8870d2d4d5727.zip
Multiplication tested for new data types
Diffstat (limited to '2.3-1/src/c/operations/interfaces/int_OpMinus.h')
-rw-r--r--2.3-1/src/c/operations/interfaces/int_OpMinus.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/2.3-1/src/c/operations/interfaces/int_OpMinus.h b/2.3-1/src/c/operations/interfaces/int_OpMinus.h
index b96328ed..2ea8a521 100644
--- a/2.3-1/src/c/operations/interfaces/int_OpMinus.h
+++ b/2.3-1/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__ */