summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjofret2007-09-11 15:52:33 +0000
committerjofret2007-09-11 15:52:33 +0000
commita42d5b3af83a3f943eaeba29a93b3c8900e3ac74 (patch)
treed7c06c042042b359da75ddfa12bf4769d3a12019
parent1a8bfc0d34e6822596050ca34014e03c7ef9bc6b (diff)
downloadscilab2c-a42d5b3af83a3f943eaeba29a93b3c8900e3ac74.tar.gz
scilab2c-a42d5b3af83a3f943eaeba29a93b3c8900e3ac74.tar.bz2
scilab2c-a42d5b3af83a3f943eaeba29a93b3c8900e3ac74.zip
Adding dummy functions to be used as prototype.
-rw-r--r--src/elementaryFunctions/log/cloga.c20
-rw-r--r--src/elementaryFunctions/log/dloga.c20
-rw-r--r--src/elementaryFunctions/log/sloga.c20
-rw-r--r--src/elementaryFunctions/log/zloga.c20
4 files changed, 80 insertions, 0 deletions
diff --git a/src/elementaryFunctions/log/cloga.c b/src/elementaryFunctions/log/cloga.c
index e69de29b..e2dc87b2 100644
--- a/src/elementaryFunctions/log/cloga.c
+++ b/src/elementaryFunctions/log/cloga.c
@@ -0,0 +1,20 @@
+/*
+** -*- C -*-
+**
+** cloga.c
+** Made by Bruno JOFRET <bruno.jofret@inria.fr>
+**
+** Started on Fri Sep 7 10:32:52 2007 bruno
+** Last update Fri Sep 7 10:37:56 2007 bruno
+**
+** Copyright INRIA 2007
+*/
+
+#include "log.h"
+
+void cloga(floatComplex* in, floatComplex* out, int size) {
+ int i = 0;
+ for (i = 0; i < size; ++i) {
+ out[i] = clogs(in[i]);
+ }
+}
diff --git a/src/elementaryFunctions/log/dloga.c b/src/elementaryFunctions/log/dloga.c
index e69de29b..dbc2d49d 100644
--- a/src/elementaryFunctions/log/dloga.c
+++ b/src/elementaryFunctions/log/dloga.c
@@ -0,0 +1,20 @@
+/*
+** -*- C -*-
+**
+** dloga.c
+** Made by Bruno JOFRET <bruno.jofret@inria.fr>
+**
+** Started on Fri Sep 7 10:31:35 2007 bruno
+** Last update Fri Sep 7 10:32:23 2007 bruno
+**
+** Copyright INRIA 2007
+*/
+
+#include "log.h"
+
+void dloga(double* x, double* y, int size) {
+ int i = 0;
+ for (i = 0; i < size; ++i) {
+ y[i] = slogs(x[i]);
+ }
+}
diff --git a/src/elementaryFunctions/log/sloga.c b/src/elementaryFunctions/log/sloga.c
index e69de29b..73ca53e3 100644
--- a/src/elementaryFunctions/log/sloga.c
+++ b/src/elementaryFunctions/log/sloga.c
@@ -0,0 +1,20 @@
+/*
+** -*- C -*-
+**
+** sloga.c
+** Made by Bruno JOFRET <bruno.jofret@inria.fr>
+**
+** Started on Fri Sep 7 10:29:01 2007 bruno
+** Last update Fri Sep 7 10:30:59 2007 bruno
+**
+** Copyright INRIA 2007
+*/
+
+#include "log.h"
+
+void sloga(float* in, float* out, int size) {
+ int i = 0;
+ for (i = 0; i < size; ++i) {
+ out[i] = slogs(in[i]);
+ }
+}
diff --git a/src/elementaryFunctions/log/zloga.c b/src/elementaryFunctions/log/zloga.c
index e69de29b..79048803 100644
--- a/src/elementaryFunctions/log/zloga.c
+++ b/src/elementaryFunctions/log/zloga.c
@@ -0,0 +1,20 @@
+/*
+** -*- C -*-
+**
+** zloga.c
+** Made by Bruno JOFRET <bruno.jofret@inria.fr>
+**
+** Started on Fri Sep 7 10:38:10 2007 bruno
+** Last update Fri Sep 7 10:38:57 2007 bruno
+**
+** Copyright INRIA 2007
+*/
+
+#include "log.h"
+
+void zloga(doubleComplex* in, doubleComplex* out, int size) {
+ int i = 0;
+ for (i = 0; i < size; ++i) {
+ out[i] = zlogs(in[i]);
+ }
+}