summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/elementaryFunctions/exp
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/exp
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/exp')
-rw-r--r--2.3-1/src/c/elementaryFunctions/exp/i16expa.c20
-rw-r--r--2.3-1/src/c/elementaryFunctions/exp/i16exps.c18
-rw-r--r--2.3-1/src/c/elementaryFunctions/exp/i8expa.c20
-rw-r--r--2.3-1/src/c/elementaryFunctions/exp/i8exps.c18
-rw-r--r--2.3-1/src/c/elementaryFunctions/exp/u16expa.c20
-rw-r--r--2.3-1/src/c/elementaryFunctions/exp/u16exps.c18
-rw-r--r--2.3-1/src/c/elementaryFunctions/exp/u8expa.c20
-rw-r--r--2.3-1/src/c/elementaryFunctions/exp/u8exps.c18
8 files changed, 152 insertions, 0 deletions
diff --git a/2.3-1/src/c/elementaryFunctions/exp/i16expa.c b/2.3-1/src/c/elementaryFunctions/exp/i16expa.c
new file mode 100644
index 00000000..faa8a120
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/exp/i16expa.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 "exp.h"
+
+void i16expa(int16* x, int size, float* y) {
+ int i = 0;
+ for (i = 0; i < size; ++i) {
+ y[i] = i16exps(x[i]);
+ }
+}
diff --git a/2.3-1/src/c/elementaryFunctions/exp/i16exps.c b/2.3-1/src/c/elementaryFunctions/exp/i16exps.c
new file mode 100644
index 00000000..97b57d96
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/exp/i16exps.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 "exp.h"
+
+float i16exps(int16 x) {
+ return (expf(x));
+}
diff --git a/2.3-1/src/c/elementaryFunctions/exp/i8expa.c b/2.3-1/src/c/elementaryFunctions/exp/i8expa.c
new file mode 100644
index 00000000..7f731fc9
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/exp/i8expa.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 "exp.h"
+
+void i8expa(int8* x, int size, float* y) {
+ int i = 0;
+ for (i = 0; i < size; ++i) {
+ y[i] = i8exps(x[i]);
+ }
+}
diff --git a/2.3-1/src/c/elementaryFunctions/exp/i8exps.c b/2.3-1/src/c/elementaryFunctions/exp/i8exps.c
new file mode 100644
index 00000000..6f2d43cc
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/exp/i8exps.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 "exp.h"
+
+float i8exps(int8 x) {
+ return (expf(x));
+}
diff --git a/2.3-1/src/c/elementaryFunctions/exp/u16expa.c b/2.3-1/src/c/elementaryFunctions/exp/u16expa.c
new file mode 100644
index 00000000..0426ab46
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/exp/u16expa.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 "exp.h"
+
+void u16expa(uint16* x, int size, float* y) {
+ int i = 0;
+ for (i = 0; i < size; ++i) {
+ y[i] = u16exps(x[i]);
+ }
+}
diff --git a/2.3-1/src/c/elementaryFunctions/exp/u16exps.c b/2.3-1/src/c/elementaryFunctions/exp/u16exps.c
new file mode 100644
index 00000000..64f5c5bf
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/exp/u16exps.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 "exp.h"
+
+float u16exps(uint16 x) {
+ return (expf(x));
+}
diff --git a/2.3-1/src/c/elementaryFunctions/exp/u8expa.c b/2.3-1/src/c/elementaryFunctions/exp/u8expa.c
new file mode 100644
index 00000000..bd90e04b
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/exp/u8expa.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 "exp.h"
+
+void u8expa(uint8* x, int size, float* y) {
+ int i = 0;
+ for (i = 0; i < size; ++i) {
+ y[i] = u8exps(x[i]);
+ }
+}
diff --git a/2.3-1/src/c/elementaryFunctions/exp/u8exps.c b/2.3-1/src/c/elementaryFunctions/exp/u8exps.c
new file mode 100644
index 00000000..e48953fa
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/exp/u8exps.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 "exp.h"
+
+float u8exps(uint8 x) {
+ return (expf(x));
+}