From a42d5b3af83a3f943eaeba29a93b3c8900e3ac74 Mon Sep 17 00:00:00 2001 From: jofret Date: Tue, 11 Sep 2007 15:52:33 +0000 Subject: Adding dummy functions to be used as prototype. --- src/elementaryFunctions/log/cloga.c | 20 ++++++++++++++++++++ src/elementaryFunctions/log/dloga.c | 20 ++++++++++++++++++++ src/elementaryFunctions/log/sloga.c | 20 ++++++++++++++++++++ src/elementaryFunctions/log/zloga.c | 20 ++++++++++++++++++++ 4 files changed, 80 insertions(+) (limited to 'src/elementaryFunctions') 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 +** +** 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 +** +** 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 +** +** 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 +** +** 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]); + } +} -- cgit