summaryrefslogtreecommitdiff
path: root/src/auxiliaryFunctions/sign/dsigna.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auxiliaryFunctions/sign/dsigna.c')
-rw-r--r--src/auxiliaryFunctions/sign/dsigna.c26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/auxiliaryFunctions/sign/dsigna.c b/src/auxiliaryFunctions/sign/dsigna.c
index d27117ff..b72bbb9c 100644
--- a/src/auxiliaryFunctions/sign/dsigna.c
+++ b/src/auxiliaryFunctions/sign/dsigna.c
@@ -1 +1,25 @@
-/* FIXME : Implementation */
+/*
+** -*- C -*-
+**
+** dsigna.c
+** Made by Bruno JOFRET <bruno.jofret@inria.fr>
+**
+** Started on Fri Sep 7 17:35:44 2007 bruno
+** Last update Fri Sep 7 17:36:15 2007 bruno
+**
+** Copyright INRIA 2007
+*/
+
+#include "sign.h"
+
+int dsigna(double *in, int size) {
+ int i = 0;
+ int sign = 1;
+
+ /* FIXME : Does it what it's supposed to do ? */
+ for (i = 0 ; i < size ; ++i) {
+ sign = sign * dsigns(in[i]);
+ }
+ return sign;
+}
+