From 170334ed9128da4a2f916d88ba52db0988e1d119 Mon Sep 17 00:00:00 2001 From: jofret Date: Mon, 29 Jan 2007 17:02:35 +0000 Subject: Need to have a clear answer about STDC99 for complex implementation ! Add som tests. --- src/elementaryFunctions/tanh/ctanha.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/elementaryFunctions/tanh/ctanha.c (limited to 'src/elementaryFunctions/tanh/ctanha.c') diff --git a/src/elementaryFunctions/tanh/ctanha.c b/src/elementaryFunctions/tanh/ctanha.c new file mode 100644 index 00000000..5224de9c --- /dev/null +++ b/src/elementaryFunctions/tanh/ctanha.c @@ -0,0 +1,28 @@ +/* +** -*- C -*- +** +** ctanha.c +** Made by Bruno JOFRET +** +** Started on Thu Dec 7 14:54:24 2006 jofret +** Last update Mon Jan 29 17:05:40 2007 jofret +** +** Copyright INRIA 2006 +*/ + + +#ifndef STDC99 +#include "floatComplex.h" +#else +#include +typedef float complex floatComplex; +#endif + +floatComplex ctanhs(floatComplex); + +void ctanha(floatComplex* x, int strideX, floatComplex* y, int strideY, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = ctanhs(x[i]); + } +} -- cgit