diff options
Diffstat (limited to '2.3-1/src/c/operations/addition')
-rw-r--r-- | 2.3-1/src/c/operations/addition/i16adda.c | 20 | ||||
-rw-r--r-- | 2.3-1/src/c/operations/addition/i16adds.c | 18 | ||||
-rw-r--r-- | 2.3-1/src/c/operations/addition/i8adds.c | 18 | ||||
-rw-r--r-- | 2.3-1/src/c/operations/addition/u16adda.c | 20 | ||||
-rw-r--r-- | 2.3-1/src/c/operations/addition/u16adds.c | 18 | ||||
-rw-r--r-- | 2.3-1/src/c/operations/addition/u8adda.c | 20 | ||||
-rw-r--r-- | 2.3-1/src/c/operations/addition/u8adds.c | 18 |
7 files changed, 132 insertions, 0 deletions
diff --git a/2.3-1/src/c/operations/addition/i16adda.c b/2.3-1/src/c/operations/addition/i16adda.c new file mode 100644 index 00000000..8c28a989 --- /dev/null +++ b/2.3-1/src/c/operations/addition/i16adda.c @@ -0,0 +1,20 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008-2008 - INRIA - Bruno JOFRET + * + * 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 + * + */ + +#include "addition.h" + +void i16adda(int16* in1, int size1, int16* in2, int size2, int16* out) { + int i = 0; + for (i = 0; i < size1 && i < size2; ++i) { + out[i] = i16adds(in1[i], in2[i]); + } +} diff --git a/2.3-1/src/c/operations/addition/i16adds.c b/2.3-1/src/c/operations/addition/i16adds.c new file mode 100644 index 00000000..ea36a911 --- /dev/null +++ b/2.3-1/src/c/operations/addition/i16adds.c @@ -0,0 +1,18 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008-2008 - INRIA - Bruno JOFRET + * + * 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 + * + */ + +#include "addition.h" + +int16 i16adds(int16 in1, int16 in2) +{ + return (in1 + in2); +} diff --git a/2.3-1/src/c/operations/addition/i8adds.c b/2.3-1/src/c/operations/addition/i8adds.c new file mode 100644 index 00000000..aee40458 --- /dev/null +++ b/2.3-1/src/c/operations/addition/i8adds.c @@ -0,0 +1,18 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008-2008 - INRIA - Bruno JOFRET + * + * 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 + * + */ + +#include "addition.h" + +int8 i8adds(int8 in1, int8 in2) +{ + return (in1 + in2); +} diff --git a/2.3-1/src/c/operations/addition/u16adda.c b/2.3-1/src/c/operations/addition/u16adda.c new file mode 100644 index 00000000..884e0994 --- /dev/null +++ b/2.3-1/src/c/operations/addition/u16adda.c @@ -0,0 +1,20 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008-2008 - INRIA - Bruno JOFRET + * + * 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 + * + */ + +#include "addition.h" + +void u16adda(uint16* in1, int size1, uint16* in2, int size2, uint16* out) { + int i = 0; + for (i = 0; i < size1 && i < size2; ++i) { + out[i] = u16adds(in1[i], in2[i]); + } +} diff --git a/2.3-1/src/c/operations/addition/u16adds.c b/2.3-1/src/c/operations/addition/u16adds.c new file mode 100644 index 00000000..f52dd055 --- /dev/null +++ b/2.3-1/src/c/operations/addition/u16adds.c @@ -0,0 +1,18 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008-2008 - INRIA - Bruno JOFRET + * + * 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 + * + */ + +#include "addition.h" + +uint16 u16adds(uint16 in1, uint16 in2) +{ + return (in1 + in2); +} diff --git a/2.3-1/src/c/operations/addition/u8adda.c b/2.3-1/src/c/operations/addition/u8adda.c new file mode 100644 index 00000000..4c195b07 --- /dev/null +++ b/2.3-1/src/c/operations/addition/u8adda.c @@ -0,0 +1,20 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008-2008 - INRIA - Bruno JOFRET + * + * 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 + * + */ + +#include "addition.h" + +void u8adda(uint8* in1, int size1, uint8* in2, int size2, uint8* out) { + int i = 0; + for (i = 0; i < size1 && i < size2; ++i) { + out[i] = u8adds(in1[i], in2[i]); + } +} diff --git a/2.3-1/src/c/operations/addition/u8adds.c b/2.3-1/src/c/operations/addition/u8adds.c new file mode 100644 index 00000000..b729c3bd --- /dev/null +++ b/2.3-1/src/c/operations/addition/u8adds.c @@ -0,0 +1,18 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008-2008 - INRIA - Bruno JOFRET + * + * 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 + * + */ + +#include "addition.h" + +uint8 u8adds(uint8 in1, uint8 in2) +{ + return (in1 + in2); +} |