summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/elementaryFunctions/tanh
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/src/c/elementaryFunctions/tanh')
-rw-r--r--2.3-1/src/c/elementaryFunctions/tanh/i16tanha.c20
-rw-r--r--2.3-1/src/c/elementaryFunctions/tanh/i16tanhs.c18
-rw-r--r--2.3-1/src/c/elementaryFunctions/tanh/i8tanha.c20
-rw-r--r--2.3-1/src/c/elementaryFunctions/tanh/i8tanhs.c18
-rw-r--r--2.3-1/src/c/elementaryFunctions/tanh/u16tanha.c20
-rw-r--r--2.3-1/src/c/elementaryFunctions/tanh/u16tanhs.c18
-rw-r--r--2.3-1/src/c/elementaryFunctions/tanh/u8tanha.c20
-rw-r--r--2.3-1/src/c/elementaryFunctions/tanh/u8tanhs.c18
8 files changed, 152 insertions, 0 deletions
diff --git a/2.3-1/src/c/elementaryFunctions/tanh/i16tanha.c b/2.3-1/src/c/elementaryFunctions/tanh/i16tanha.c
new file mode 100644
index 00000000..5c564d9b
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/tanh/i16tanha.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 "tanh.h"
+
+void i16tanha(int16* x, int size, float* y) {
+ int i = 0;
+ for (i = 0; i < size; ++i) {
+ y[i] = i16tanhs(x[i]);
+ }
+}
diff --git a/2.3-1/src/c/elementaryFunctions/tanh/i16tanhs.c b/2.3-1/src/c/elementaryFunctions/tanh/i16tanhs.c
new file mode 100644
index 00000000..d42b2678
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/tanh/i16tanhs.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 <math.h>
+#include "tanh.h"
+
+float i16tanhs(int16 x) {
+ return (tanhf(x));
+}
diff --git a/2.3-1/src/c/elementaryFunctions/tanh/i8tanha.c b/2.3-1/src/c/elementaryFunctions/tanh/i8tanha.c
new file mode 100644
index 00000000..cbcc6511
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/tanh/i8tanha.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 "tanh.h"
+
+void i8tanha(int8* x, int size, float* y) {
+ int i = 0;
+ for (i = 0; i < size; ++i) {
+ y[i] = i8tanhs(x[i]);
+ }
+}
diff --git a/2.3-1/src/c/elementaryFunctions/tanh/i8tanhs.c b/2.3-1/src/c/elementaryFunctions/tanh/i8tanhs.c
new file mode 100644
index 00000000..569eeaa5
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/tanh/i8tanhs.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 <math.h>
+#include "tanh.h"
+
+float i8tanhs(int8 x) {
+ return (tanhf(x));
+}
diff --git a/2.3-1/src/c/elementaryFunctions/tanh/u16tanha.c b/2.3-1/src/c/elementaryFunctions/tanh/u16tanha.c
new file mode 100644
index 00000000..c7aaca49
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/tanh/u16tanha.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 "tanh.h"
+
+void u16tanha(uint16* x, int size, float* y) {
+ int i = 0;
+ for (i = 0; i < size; ++i) {
+ y[i] = u16tanhs(x[i]);
+ }
+}
diff --git a/2.3-1/src/c/elementaryFunctions/tanh/u16tanhs.c b/2.3-1/src/c/elementaryFunctions/tanh/u16tanhs.c
new file mode 100644
index 00000000..6ce5efcf
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/tanh/u16tanhs.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 <math.h>
+#include "tanh.h"
+
+float u16tanhs(uint16 x) {
+ return (tanhf(x));
+}
diff --git a/2.3-1/src/c/elementaryFunctions/tanh/u8tanha.c b/2.3-1/src/c/elementaryFunctions/tanh/u8tanha.c
new file mode 100644
index 00000000..92f19a63
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/tanh/u8tanha.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 "tanh.h"
+
+void u8tanha(uint8* x, int size, float* y) {
+ int i = 0;
+ for (i = 0; i < size; ++i) {
+ y[i] = u8tanhs(x[i]);
+ }
+}
diff --git a/2.3-1/src/c/elementaryFunctions/tanh/u8tanhs.c b/2.3-1/src/c/elementaryFunctions/tanh/u8tanhs.c
new file mode 100644
index 00000000..cac46c7a
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/tanh/u8tanhs.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 <math.h>
+#include "tanh.h"
+
+float u8tanhs(uint8 x) {
+ return (tanhf(x));
+}