diff options
Diffstat (limited to 'src/auxiliaryFunctions')
-rw-r--r-- | src/auxiliaryFunctions/Makefile | 16 | ||||
-rw-r--r-- | src/auxiliaryFunctions/find/Makefile | 8 | ||||
-rw-r--r-- | src/auxiliaryFunctions/find/cfinda.c | 3 | ||||
-rw-r--r-- | src/auxiliaryFunctions/find/notFound.h | 18 | ||||
-rw-r--r-- | src/auxiliaryFunctions/isempty/Makefile | 43 | ||||
-rw-r--r-- | src/auxiliaryFunctions/isempty/cisEmptya.c | 24 | ||||
-rw-r--r-- | src/auxiliaryFunctions/isempty/disEmptya.c | 23 | ||||
-rw-r--r-- | src/auxiliaryFunctions/isempty/isEmpty.h | 37 | ||||
-rw-r--r-- | src/auxiliaryFunctions/isempty/sisEmptya.c | 23 | ||||
-rw-r--r-- | src/auxiliaryFunctions/isempty/zisEmptya.c | 24 |
10 files changed, 193 insertions, 26 deletions
diff --git a/src/auxiliaryFunctions/Makefile b/src/auxiliaryFunctions/Makefile index c38a45ed..06db4f70 100644 --- a/src/auxiliaryFunctions/Makefile +++ b/src/auxiliaryFunctions/Makefile @@ -5,14 +5,14 @@ ## Made by Bruno JOFRET <bruno.jofret@inria.fr> ## ## Started on Tue Dec 5 09:19:53 2006 jofret -## Last update Tue Feb 13 17:17:02 2007 jofret +## Last update Wed Feb 14 15:40:48 2007 jofret ## ## Copyright INRIA 2006 ## DIRS = sign \ - find #\ - #isempty #\ + find \ + isempty #\ #isnan #\ #rand #\ #size #\ @@ -20,10 +20,20 @@ DIRS = sign \ all: recure +stdc99: + @for i in $(DIRS); \ + do cd $$i && make STANDARD=-std=c99; \ + result=$$? ; \ + cd .. ;\ + if test $$result -ne 0; then exit 1; fi; \ + done + recure: @for i in $(DIRS); \ do cd $$i && make; \ + result=$$? ; \ cd .. ;\ + if test $$result -ne 0; then exit 1; fi; \ done clean: diff --git a/src/auxiliaryFunctions/find/Makefile b/src/auxiliaryFunctions/find/Makefile index 88ec08fc..ab3bb60e 100644 --- a/src/auxiliaryFunctions/find/Makefile +++ b/src/auxiliaryFunctions/find/Makefile @@ -5,7 +5,7 @@ ## Made by Bruno JOFRET <bruno.jofret@inria.fr> ## ## Started on Thu Nov 30 16:33:40 2006 jofret -## Last update Tue Feb 13 15:54:45 2007 jofret +## Last update Wed Feb 14 14:07:02 2007 jofret ## ## Copyright INRIA 2006 ## @@ -14,9 +14,9 @@ NAME = ../../lib/libFind.a RM = rm -f CC = gcc -INCLUDE = ../../type -LINK = ../../lib -CFLAGS = -Werror -Wall -pedantic -ansi -I $(INCLUDE) -L $(LINK) $(STANDARD) +INCLUDE = -I ../../type -I ../../misc +LINK = -L ../../lib +CFLAGS = -Werror -Wall -pedantic -ansi $(INCLUDE) $(LINK) $(STANDARD) AR = ar cru RANLIB = ranlib diff --git a/src/auxiliaryFunctions/find/cfinda.c b/src/auxiliaryFunctions/find/cfinda.c index aa126296..19a9667f 100644 --- a/src/auxiliaryFunctions/find/cfinda.c +++ b/src/auxiliaryFunctions/find/cfinda.c @@ -5,7 +5,7 @@ ** Made by Bruno JOFRET <bruno.jofret@inria.fr> ** ** Started on Tue Feb 13 16:46:42 2007 jofret -** Last update Tue Feb 13 17:15:14 2007 jofret +** Last update Wed Feb 14 17:09:19 2007 jofret ** ** Copyright INRIA 2007 */ @@ -14,5 +14,6 @@ #include "notFound.h" int cfinda(floatComplex* z, int size) { + /* FIXME : Dummy !! */ return NOT_FOUND; } diff --git a/src/auxiliaryFunctions/find/notFound.h b/src/auxiliaryFunctions/find/notFound.h deleted file mode 100644 index 59d8c2fe..00000000 --- a/src/auxiliaryFunctions/find/notFound.h +++ /dev/null @@ -1,18 +0,0 @@ -/* -** -*- C -*- -** -** notFound.h -** Made by Bruno JOFRET <bruno.jofret@inria.fr> -** -** Started on Thu Feb 8 10:12:17 2007 jofret -** Last update Tue Feb 13 17:16:47 2007 jofret -** -** Copyright INRIA 2007 -*/ - -#ifndef __NOT_FOUND_H__ -#define __NOT_FOUND_H__ - -#define NOT_FOUND -1 - -#endif /* !__NOT_FOUND_H__ */ diff --git a/src/auxiliaryFunctions/isempty/Makefile b/src/auxiliaryFunctions/isempty/Makefile new file mode 100644 index 00000000..85aff443 --- /dev/null +++ b/src/auxiliaryFunctions/isempty/Makefile @@ -0,0 +1,43 @@ +## +## -*- makefile -*- +## +## Makefile +## Made by Bruno JOFRET <bruno.jofret@inria.fr> +## +## Started on Thu Nov 30 16:33:40 2006 jofret +## Last update Wed Feb 14 14:38:13 2007 jofret +## +## Copyright INRIA 2006 +## + +NAME = ../../lib/libIsEmpty.a + +RM = rm -f +CC = gcc +INCLUDE = -I ../../type -I ../../misc +LINK = -L ../../lib +CFLAGS = -Werror -Wall -pedantic -ansi $(INCLUDE) $(LINK) $(STANDARD) +AR = ar cru +RANLIB = ranlib + +SRC = sisEmptya.c \ + disEmptya.c \ + cisEmptya.c \ + zisEmptya.c + +HEAD = isEmpty.h +OBJ = $(SRC:.c=.o) + +all: $(NAME) + +$(NAME) : $(HEAD) $(OBJ) + $(AR) $@ $(OBJ) + $(RANLIB) $@ + +clean: + $(RM) $(OBJ) + +distclean: clean + $(RM) $(NAME) + +re: clean all 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 <bruno.jofret@inria.fr> +** +** Started on Wed Feb 14 15:33:30 2007 jofret +** Last update Wed Feb 14 15:35:29 2007 jofret +** +** Copyright INRIA 2007 +*/ + +#include <stdbool.h> +#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; +} diff --git a/src/auxiliaryFunctions/isempty/disEmptya.c b/src/auxiliaryFunctions/isempty/disEmptya.c new file mode 100644 index 00000000..7ffb3a1a --- /dev/null +++ b/src/auxiliaryFunctions/isempty/disEmptya.c @@ -0,0 +1,23 @@ +/* +** -*- C -*- +** +** disEmptya.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Wed Feb 14 15:29:27 2007 jofret +** Last update Wed Feb 14 15:29:54 2007 jofret +** +** Copyright INRIA 2007 +*/ + +#include <stdbool.h> +#include "notFound.h" + +int dfinda(double*, int); + +bool disEmptya(double* x, int size) { + if (dfinda(x, size) == NOT_FOUND) { + return true; + } + return false; +} diff --git a/src/auxiliaryFunctions/isempty/isEmpty.h b/src/auxiliaryFunctions/isempty/isEmpty.h new file mode 100644 index 00000000..40a9ad3e --- /dev/null +++ b/src/auxiliaryFunctions/isempty/isEmpty.h @@ -0,0 +1,37 @@ +/* +** -*- C -*- +** +** find.h +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Feb 8 10:12:17 2007 jofret +** Last update Wed Feb 14 14:43:53 2007 jofret +** +** Copyright INRIA 2007 +*/ + +#ifndef __IS_EMPTY_H__ +#define __IS_EMPTY_H__ + +#include <bool.h> + +/* +** \brief Float Is Empty function +*/ +bool sisEmptya(float* x, int size); + +/* +** \brief Double Is Empty function +*/ +bool disEmptya(double*x, int size); + +/* +** \brief Float Complex Is Empty function +*/ +bool cisEmptya(floatComplex* z, int size); + +/* +** \brief Double Complex Is Empty function +*/ +bool zisEmptya(doubleComplex* z, int size); +#endif /* !__IS_EMPTY_H__ */ diff --git a/src/auxiliaryFunctions/isempty/sisEmptya.c b/src/auxiliaryFunctions/isempty/sisEmptya.c new file mode 100644 index 00000000..af8a9860 --- /dev/null +++ b/src/auxiliaryFunctions/isempty/sisEmptya.c @@ -0,0 +1,23 @@ +/* +** -*- C -*- +** +** sisEmptya.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Wed Feb 14 14:59:33 2007 jofret +** Last update Wed Feb 14 15:25:32 2007 jofret +** +** Copyright INRIA 2007 +*/ + +#include <stdbool.h> +#include "notFound.h" + +int sfinda(float*, int); + +bool sisEmptya(float* x, int size) { + if (sfinda(x, size) == NOT_FOUND) { + return true; + } + return false; +} diff --git a/src/auxiliaryFunctions/isempty/zisEmptya.c b/src/auxiliaryFunctions/isempty/zisEmptya.c new file mode 100644 index 00000000..02e0ce53 --- /dev/null +++ b/src/auxiliaryFunctions/isempty/zisEmptya.c @@ -0,0 +1,24 @@ +/* +** -*- C -*- +** +** zisEmptya.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Wed Feb 14 15:34:28 2007 jofret +** Last update Wed Feb 14 15:40:02 2007 jofret +** +** Copyright INRIA 2007 +*/ + +#include <stdbool.h> +#include "notFound.h" +#include "doubleComplex.h" + +int zfinda(doubleComplex*, int); + +bool zisEmptya(doubleComplex* x, int size) { + if (zfinda(x, size) == NOT_FOUND) { + return true; + } + return false; +} |