summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/elementaryFunctions/interfaces
diff options
context:
space:
mode:
authorimushir2016-01-22 16:01:46 +0530
committerimushir2016-01-22 16:01:46 +0530
commit0296cf3166e7250191f0e08907b65dad9e665e46 (patch)
treeadaf5a67239b9db13a469b3a5921c0efb234257e /2.3-1/src/c/elementaryFunctions/interfaces
parent2803a0bccff2ca4f4b5b81d3ef7f7cf3c75e0ec9 (diff)
downloadScilab2C-0296cf3166e7250191f0e08907b65dad9e665e46.tar.gz
Scilab2C-0296cf3166e7250191f0e08907b65dad9e665e46.tar.bz2
Scilab2C-0296cf3166e7250191f0e08907b65dad9e665e46.zip
added support of uint8,uint16 for bitwise operators
Diffstat (limited to '2.3-1/src/c/elementaryFunctions/interfaces')
-rw-r--r--2.3-1/src/c/elementaryFunctions/interfaces/int_bitand.h16
-rw-r--r--2.3-1/src/c/elementaryFunctions/interfaces/int_bitcmp.h16
-rw-r--r--2.3-1/src/c/elementaryFunctions/interfaces/int_bitget.h10
-rw-r--r--2.3-1/src/c/elementaryFunctions/interfaces/int_bitor.h16
-rw-r--r--2.3-1/src/c/elementaryFunctions/interfaces/int_bitset.h13
-rw-r--r--2.3-1/src/c/elementaryFunctions/interfaces/int_bitxor.h16
6 files changed, 87 insertions, 0 deletions
diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_bitand.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_bitand.h
new file mode 100644
index 00000000..26031ad3
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/interfaces/int_bitand.h
@@ -0,0 +1,16 @@
+/* Scilab2C FOSSEE IITB */
+
+#ifndef __INT_BITAND_H__
+#define __INT_BITAND_H__
+
+
+#define u80u80bitandu80(in1,in2) u8bitands(in1,in2)
+
+#define u82u82bitandu82(in1,size1,in2,size2,out) u8bitanda(in1,in2,size1[0]*size1[1],out)
+
+#define u160u160bitandu160(in1,in2) u16bitands(in1,in2)
+
+#define u162u162bitandu162(in1,size1,in2,size2,out) u16bitanda(in1,in2,size1[0]*size1[1],out)
+
+
+#endif
diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_bitcmp.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_bitcmp.h
new file mode 100644
index 00000000..d72eb2e7
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/interfaces/int_bitcmp.h
@@ -0,0 +1,16 @@
+/* Scilab2C FOSSEE IITB */
+
+#ifndef __INT_BITCMP_H__
+#define __INT_BITCMP_H__
+
+
+#define u80d0bitcmpu80(in1,in2) u8bitcmps(in1,in2)
+
+#define u82d0bitcmpu82(in1,size1,in2,out) u8bitcmpa(in1,in2,size1[0]*size1[1],out)
+
+#define u160d0bitcmpu160(in1,in2) u16bitcmps(in1,in2)
+
+#define u162d0bitcmpu162(in1,size1,in2,out) u16bitcmpa(in1,in2,size1[0]*size1[1],out)
+
+
+#endif
diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_bitget.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_bitget.h
new file mode 100644
index 00000000..7b6b8e9e
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/interfaces/int_bitget.h
@@ -0,0 +1,10 @@
+/* Scilab2C FOSSEE IITB */
+
+#ifndef __INT_BITGET_H__
+#define __INT_BITGET_H__
+
+#define u80d0bitgetu80(in1,in2) u8bitgets(in1,in2)
+
+#define u160d0bitgetu160(in1,in2) u16bitgets(in1,in2)
+
+#endif
diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_bitor.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_bitor.h
new file mode 100644
index 00000000..6a65c9f3
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/interfaces/int_bitor.h
@@ -0,0 +1,16 @@
+/* Scilab2C FOSSEE IITB */
+
+#ifndef __INT_BITOR_H__
+#define __INT_BITOR_H__
+
+
+#define u80u80bitoru80(in1,in2) u8bitors(in1,in2)
+
+#define u82u82bitoru82(in1,size1,in2,size2,out) u8bitora(in1,in2,size1[0]*size1[1],out)
+
+#define u160u160bitoru160(in1,in2) u16bitors(in1,in2)
+
+#define u162u162bitoru162(in1,size1,in2,size2,out) u16bitora(in1,in2,size1[0]*size1[1],out)
+
+
+#endif
diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_bitset.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_bitset.h
new file mode 100644
index 00000000..e8643252
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/interfaces/int_bitset.h
@@ -0,0 +1,13 @@
+/* Scilab2C FOSSEE IITB */
+
+#ifndef __INT_BITSET_H__
+#define __INT_BITSET_H__
+
+#define u80d0d0bitsetu80(in1,in2,in3) u8bitsets(in1,in2,in3)
+
+#define u160d0d0bitsetu160(in1,in2,in3) u16bitsets(in1,in2,in3)
+
+
+
+
+#endif
diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_bitxor.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_bitxor.h
new file mode 100644
index 00000000..30aea6cf
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/interfaces/int_bitxor.h
@@ -0,0 +1,16 @@
+/* Scilab2C FOSSEE IITB */
+
+#ifndef __INT_BITXOR_H__
+#define __INT_BITXOR_H__
+
+
+#define u80u80bitxoru80(in1,in2) u8bitxors(in1,in2)
+
+#define u82u82bitxoru82(in1,size1,in2,size2,out) u8bitxora(in1,in2,size1[0]*size1[1],out)
+
+#define u160u160bitxoru160(in1,in2) u16bitxors(in1,in2)
+
+#define u162u162bitxoru162(in1,size1,in2,size2,out) u16bitxora(in1,in2,size1[0]*size1[1],out)
+
+
+#endif