summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/elementaryFunctions/sin
diff options
context:
space:
mode:
authorsiddhu89902015-08-20 01:20:26 +0530
committersiddhu89902015-08-20 01:20:26 +0530
commit5675f7cd91515d5e88fd151943c3ec5cde57ceaa (patch)
tree5aee663edf5083cfc098f7a0b5f34eb7a61c26b1 /2.3-1/src/c/elementaryFunctions/sin
parent89454b3f15e24291e4941a44a4d8870d2d4d5727 (diff)
downloadScilab2C-5675f7cd91515d5e88fd151943c3ec5cde57ceaa.tar.gz
Scilab2C-5675f7cd91515d5e88fd151943c3ec5cde57ceaa.tar.bz2
Scilab2C-5675f7cd91515d5e88fd151943c3ec5cde57ceaa.zip
Support for disp added
Diffstat (limited to '2.3-1/src/c/elementaryFunctions/sin')
-rw-r--r--2.3-1/src/c/elementaryFunctions/sin/i16sina.c20
-rw-r--r--2.3-1/src/c/elementaryFunctions/sin/i16sins.c18
-rw-r--r--2.3-1/src/c/elementaryFunctions/sin/i8sina.c20
-rw-r--r--2.3-1/src/c/elementaryFunctions/sin/i8sins.c18
-rw-r--r--2.3-1/src/c/elementaryFunctions/sin/u16sina.c20
-rw-r--r--2.3-1/src/c/elementaryFunctions/sin/u16sins.c18
-rw-r--r--2.3-1/src/c/elementaryFunctions/sin/u8sina.c20
-rw-r--r--2.3-1/src/c/elementaryFunctions/sin/u8sins.c18
8 files changed, 152 insertions, 0 deletions
diff --git a/2.3-1/src/c/elementaryFunctions/sin/i16sina.c b/2.3-1/src/c/elementaryFunctions/sin/i16sina.c
new file mode 100644
index 00000000..0a00146a
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/sin/i16sina.c
@@ -0,0 +1,20 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2006-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 "sin.h"
+
+void i16sina(int16* x, int size, float* y) {
+ int i = 0;
+ for (i = 0; i < size; ++i) {
+ y[i] = i16sins(x[i]);
+ }
+}
diff --git a/2.3-1/src/c/elementaryFunctions/sin/i16sins.c b/2.3-1/src/c/elementaryFunctions/sin/i16sins.c
new file mode 100644
index 00000000..cbf69d65
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/sin/i16sins.c
@@ -0,0 +1,18 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2006-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 <math.h>
+#include "sin.h"
+
+float i16sins(int16 x) {
+ return (sin(x));
+}
diff --git a/2.3-1/src/c/elementaryFunctions/sin/i8sina.c b/2.3-1/src/c/elementaryFunctions/sin/i8sina.c
new file mode 100644
index 00000000..f811501c
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/sin/i8sina.c
@@ -0,0 +1,20 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2006-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 "sin.h"
+
+void i8sina(int8* x, int size, float* y) {
+ int i = 0;
+ for (i = 0; i < size; ++i) {
+ y[i] = i8sins(x[i]);
+ }
+}
diff --git a/2.3-1/src/c/elementaryFunctions/sin/i8sins.c b/2.3-1/src/c/elementaryFunctions/sin/i8sins.c
new file mode 100644
index 00000000..ab522ef0
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/sin/i8sins.c
@@ -0,0 +1,18 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2006-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 <math.h>
+#include "sin.h"
+
+float i8sins(int8 x) {
+ return (sin(x));
+}
diff --git a/2.3-1/src/c/elementaryFunctions/sin/u16sina.c b/2.3-1/src/c/elementaryFunctions/sin/u16sina.c
new file mode 100644
index 00000000..fa4645f8
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/sin/u16sina.c
@@ -0,0 +1,20 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2006-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 "sin.h"
+
+void u16sina(uint16* x, int size, float* y) {
+ int i = 0;
+ for (i = 0; i < size; ++i) {
+ y[i] = u16sins(x[i]);
+ }
+}
diff --git a/2.3-1/src/c/elementaryFunctions/sin/u16sins.c b/2.3-1/src/c/elementaryFunctions/sin/u16sins.c
new file mode 100644
index 00000000..dfa215dd
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/sin/u16sins.c
@@ -0,0 +1,18 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2006-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 <math.h>
+#include "sin.h"
+
+float u16sins(uint16 x) {
+ return (sin(x));
+}
diff --git a/2.3-1/src/c/elementaryFunctions/sin/u8sina.c b/2.3-1/src/c/elementaryFunctions/sin/u8sina.c
new file mode 100644
index 00000000..2bfe866e
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/sin/u8sina.c
@@ -0,0 +1,20 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2006-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 "sin.h"
+
+void u8sina(uint8* x, int size, float* y) {
+ int i = 0;
+ for (i = 0; i < size; ++i) {
+ y[i] = u8sins(x[i]);
+ }
+}
diff --git a/2.3-1/src/c/elementaryFunctions/sin/u8sins.c b/2.3-1/src/c/elementaryFunctions/sin/u8sins.c
new file mode 100644
index 00000000..b1d31790
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/sin/u8sins.c
@@ -0,0 +1,18 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2006-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 <math.h>
+#include "sin.h"
+
+float u8sins(uint8 x) {
+ return (sin(x));
+}