diff options
author | siddhu8990 | 2016-02-01 11:29:45 +0530 |
---|---|---|
committer | siddhu8990 | 2016-02-01 11:29:45 +0530 |
commit | bbdc94252ee563f0b01d4949868a583e43a2e6a8 (patch) | |
tree | 5f5197d22bba24e41928c98aed936dc5ad828fcf /src/c/elementaryFunctions/bitand | |
parent | 5df6d1cb2868abdc8df66755f76c997ee36c0b49 (diff) | |
parent | 8ee41aca4183a0239b9cb220de3f159b1f0910fb (diff) | |
download | Scilab2C_fossee_old-bbdc94252ee563f0b01d4949868a583e43a2e6a8.tar.gz Scilab2C_fossee_old-bbdc94252ee563f0b01d4949868a583e43a2e6a8.tar.bz2 Scilab2C_fossee_old-bbdc94252ee563f0b01d4949868a583e43a2e6a8.zip |
Merged RPi and bit operators
Diffstat (limited to 'src/c/elementaryFunctions/bitand')
-rw-r--r-- | src/c/elementaryFunctions/bitand/u16bitanda.c | 14 | ||||
-rw-r--r-- | src/c/elementaryFunctions/bitand/u16bitands.c | 9 | ||||
-rw-r--r-- | src/c/elementaryFunctions/bitand/u8bitanda.c | 14 | ||||
-rw-r--r-- | src/c/elementaryFunctions/bitand/u8bitands.c | 9 |
4 files changed, 46 insertions, 0 deletions
diff --git a/src/c/elementaryFunctions/bitand/u16bitanda.c b/src/c/elementaryFunctions/bitand/u16bitanda.c new file mode 100644 index 0000000..743161e --- /dev/null +++ b/src/c/elementaryFunctions/bitand/u16bitanda.c @@ -0,0 +1,14 @@ +/* Scilab2C FOSSEE IITB */ +#include "bitand.h" + +void u16bitanda(uint16* x,uint16* y,int size,uint16* out) +{ + int i = 0; + for(i=0;i<size;i++) + { + out[i] = u16bitands(x[i],y[i]); + } + + +} + diff --git a/src/c/elementaryFunctions/bitand/u16bitands.c b/src/c/elementaryFunctions/bitand/u16bitands.c new file mode 100644 index 0000000..7ba73c1 --- /dev/null +++ b/src/c/elementaryFunctions/bitand/u16bitands.c @@ -0,0 +1,9 @@ +/* Scilab2C FOSSEE IITB */ + +#include "bitand.h" + +uint16 u16bitands(uint16 x,uint16 y) +{ + return (x & y); + +} diff --git a/src/c/elementaryFunctions/bitand/u8bitanda.c b/src/c/elementaryFunctions/bitand/u8bitanda.c new file mode 100644 index 0000000..e1260a7 --- /dev/null +++ b/src/c/elementaryFunctions/bitand/u8bitanda.c @@ -0,0 +1,14 @@ +/* Scilab2C FOSSEE IITB */ +#include "bitand.h" + +void u8bitanda(uint8* x,uint8* y,int size,uint8* out) +{ + int i = 0; + for(i=0;i<size;i++) + { + out[i] = u8bitands(x[i],y[i]); + } + + +} + diff --git a/src/c/elementaryFunctions/bitand/u8bitands.c b/src/c/elementaryFunctions/bitand/u8bitands.c new file mode 100644 index 0000000..eda3ccc --- /dev/null +++ b/src/c/elementaryFunctions/bitand/u8bitands.c @@ -0,0 +1,9 @@ +/* Scilab2C FOSSEE IITB */ + +#include "bitand.h" + +uint8 u8bitands(uint8 x,uint8 y) +{ + return (x & y); + +} |