From 5fcd2352aa1dd7a7b22fd37e9e529a8414bf30e1 Mon Sep 17 00:00:00 2001 From: jofret Date: Wed, 14 Feb 2007 16:40:33 +0000 Subject: * src/test/test*.c : Add some FIXME in order to remember to code some tests. * src/test/testFind.c : Testing of the find function. * src/test/testIsEmpty.c : Testing of the isEmpty function. * src/misc : Create for misc includes. * src/auxiliaryFunctions/find/notFound.h : Moved * src/misc/notFound.h : Better use here. * */*/Makefile : Modify all Makefiles. Remove -pedantic. Must be crazy to use this... * src/auxiliaryFunctions/isempty : IsEmpty functions implementation. * src/auxiliaryFunctions/isempty/{sdcz}isEmptya.c : Implementation : s(float) d(double) c(floatComplex) z(doubleComplex) --- src/auxiliaryFunctions/isempty/cisEmptya.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/auxiliaryFunctions/isempty/cisEmptya.c (limited to 'src/auxiliaryFunctions/isempty/cisEmptya.c') diff --git a/src/auxiliaryFunctions/isempty/cisEmptya.c b/src/auxiliaryFunctions/isempty/cisEmptya.c new file mode 100644 index 00000000..bbaa71ea --- /dev/null +++ b/src/auxiliaryFunctions/isempty/cisEmptya.c @@ -0,0 +1,24 @@ +/* +** -*- C -*- +** +** cisEmptya.c +** Made by Bruno JOFRET +** +** Started on Wed Feb 14 15:33:30 2007 jofret +** Last update Wed Feb 14 15:35:29 2007 jofret +** +** Copyright INRIA 2007 +*/ + +#include +#include "notFound.h" +#include "floatComplex.h" + +int cfinda(floatComplex*, int); + +bool cisEmptya(floatComplex* x, int size) { + if (cfinda(x, size) == NOT_FOUND) { + return true; + } + return false; +} -- cgit