diff options
Diffstat (limited to '2.3-1/src/c/elementaryFunctions/bitand')
-rw-r--r-- | 2.3-1/src/c/elementaryFunctions/bitand/u16bitanda.c | 25 | ||||
-rw-r--r-- | 2.3-1/src/c/elementaryFunctions/bitand/u16bitands.c | 20 | ||||
-rw-r--r-- | 2.3-1/src/c/elementaryFunctions/bitand/u8bitanda.c | 24 | ||||
-rw-r--r-- | 2.3-1/src/c/elementaryFunctions/bitand/u8bitands.c | 19 |
4 files changed, 88 insertions, 0 deletions
diff --git a/2.3-1/src/c/elementaryFunctions/bitand/u16bitanda.c b/2.3-1/src/c/elementaryFunctions/bitand/u16bitanda.c new file mode 100644 index 00000000..ff92399c --- /dev/null +++ b/2.3-1/src/c/elementaryFunctions/bitand/u16bitanda.c @@ -0,0 +1,25 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Mushir + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#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/2.3-1/src/c/elementaryFunctions/bitand/u16bitands.c b/2.3-1/src/c/elementaryFunctions/bitand/u16bitands.c new file mode 100644 index 00000000..2fb78d17 --- /dev/null +++ b/2.3-1/src/c/elementaryFunctions/bitand/u16bitands.c @@ -0,0 +1,20 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Mushir + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + + +#include "bitand.h" + +uint16 u16bitands(uint16 x,uint16 y) +{ + return (x & y); + +} diff --git a/2.3-1/src/c/elementaryFunctions/bitand/u8bitanda.c b/2.3-1/src/c/elementaryFunctions/bitand/u8bitanda.c new file mode 100644 index 00000000..1622ec57 --- /dev/null +++ b/2.3-1/src/c/elementaryFunctions/bitand/u8bitanda.c @@ -0,0 +1,24 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Mushir + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ +#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/2.3-1/src/c/elementaryFunctions/bitand/u8bitands.c b/2.3-1/src/c/elementaryFunctions/bitand/u8bitands.c new file mode 100644 index 00000000..30dde0fd --- /dev/null +++ b/2.3-1/src/c/elementaryFunctions/bitand/u8bitands.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Mushir + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "bitand.h" + +uint8 u8bitands(uint8 x,uint8 y) +{ + return (x & y); + +} |