summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/operations/interfaces
diff options
context:
space:
mode:
authorsiddhu89902015-08-20 01:20:26 +0530
committersiddhu89902015-08-20 01:20:26 +0530
commit5675f7cd91515d5e88fd151943c3ec5cde57ceaa (patch)
tree5aee663edf5083cfc098f7a0b5f34eb7a61c26b1 /2.3-1/src/c/operations/interfaces
parent89454b3f15e24291e4941a44a4d8870d2d4d5727 (diff)
downloadScilab2C-5675f7cd91515d5e88fd151943c3ec5cde57ceaa.tar.gz
Scilab2C-5675f7cd91515d5e88fd151943c3ec5cde57ceaa.tar.bz2
Scilab2C-5675f7cd91515d5e88fd151943c3ec5cde57ceaa.zip
Support for disp added
Diffstat (limited to '2.3-1/src/c/operations/interfaces')
-rw-r--r--2.3-1/src/c/operations/interfaces/int_OpLogNot.h25
-rw-r--r--2.3-1/src/c/operations/interfaces/int_OpStar.h4
2 files changed, 27 insertions, 2 deletions
diff --git a/2.3-1/src/c/operations/interfaces/int_OpLogNot.h b/2.3-1/src/c/operations/interfaces/int_OpLogNot.h
index 6184265c..852cd1c7 100644
--- a/2.3-1/src/c/operations/interfaces/int_OpLogNot.h
+++ b/2.3-1/src/c/operations/interfaces/int_OpLogNot.h
@@ -23,6 +23,14 @@
#define z0OpLogNotz0(in) (zreals(in)==0) ? DoubleComplex(1,0) : DoubleComplex(0,0)
+#define u8OpLogNotu80(in) (in==0) ? (uint8)1 : (uint8)0
+
+#define i8OpLogNoti80(in) (in==0) ? (int8)1 : (int8)0
+
+#define u16OpLogNotu160(in) (in==0) ? (uint16)1 : (uint16)0
+
+#define i16OpLogNoti160(in) (in==0) ? (int16)1 : (int16)0
+
#define s2OpLogNots2(in,size,out) {int i;\
for (i=0;i<size[0]*size[1];i++) out[i]=s0OpLogNots0(in[i]);\
}
@@ -39,4 +47,21 @@
for (i=0;i<size[0]*size[1];i++) out[i]=z0OpLogNotz0(in[i]);\
}
+#define u82OpLogNotu82(in,size,out) {int i;\
+ for (i=0;i<size[0]*size[1];i++) out[i]=u80OpLogNotu80(in[i]);\
+ }
+
+#define i82OpLogNoti82(in,size,out) {int i;\
+ for (i=0;i<size[0]*size[1];i++) out[i]=i80OpLogNoti80(in[i]);\
+ }
+
+#define u162OpLogNotu162(in,size,out) {int i;\
+ for (i=0;i<size[0]*size[1];i++) out[i]=u160OpLogNoti160(in[i]);\
+ }
+
+#define i162OpLogNoti162(in,size,out) {int i;\
+ for (i=0;i<size[0]*size[1];i++) out[i]=i160OpLogNotu160(in[i]);\
+ }
+
+
#endif /* !__INT_OPLOGNOT_H__ */
diff --git a/2.3-1/src/c/operations/interfaces/int_OpStar.h b/2.3-1/src/c/operations/interfaces/int_OpStar.h
index 53f39e89..f899a29e 100644
--- a/2.3-1/src/c/operations/interfaces/int_OpStar.h
+++ b/2.3-1/src/c/operations/interfaces/int_OpStar.h
@@ -112,7 +112,7 @@
#define u160u162OpStaru162(in1,in2,size,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=in1*in2[i];}
-#define i160162OpStari162(in1,in2,size,out) {int i=0;\
+#define i160i162OpStari162(in1,in2,size,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=in1*in2[i];}
/* Matrix * Scalar */
@@ -156,7 +156,7 @@
#define u162u160OpStaru162(in1,size,in2,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=in1[i]*in2;}
-#define i162160OpStari162(in1,size,in2,out) {int i=0;\
+#define i162i160OpStari162(in1,size,in2,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=in1[i]*in2;}