summaryrefslogtreecommitdiff
path: root/src/c/operations/interfaces/int_OpLogNot.h
diff options
context:
space:
mode:
authorsiddhu89902015-08-20 01:20:26 +0530
committersiddhu89902015-08-20 01:20:26 +0530
commit222a3e39441ad408dacdc39d46d687dee5a6bf3c (patch)
tree04f0409dc26f4efb46d13b42e89d1979807bea50 /src/c/operations/interfaces/int_OpLogNot.h
parentaba32804a6cbd6fb16e13e86364e643022a2941a (diff)
downloadScilab2C_fossee_old-222a3e39441ad408dacdc39d46d687dee5a6bf3c.tar.gz
Scilab2C_fossee_old-222a3e39441ad408dacdc39d46d687dee5a6bf3c.tar.bz2
Scilab2C_fossee_old-222a3e39441ad408dacdc39d46d687dee5a6bf3c.zip
Support for disp added
Diffstat (limited to 'src/c/operations/interfaces/int_OpLogNot.h')
-rw-r--r--src/c/operations/interfaces/int_OpLogNot.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/c/operations/interfaces/int_OpLogNot.h b/src/c/operations/interfaces/int_OpLogNot.h
index 6184265..852cd1c 100644
--- a/src/c/operations/interfaces/int_OpLogNot.h
+++ b/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__ */