From 38419db1635e0e498d6937ace677de266b764306 Mon Sep 17 00:00:00 2001
From: torset
Date: Wed, 4 Feb 2009 14:22:40 +0000
Subject: Update

---
 src/auxiliaryFunctions/isempty/cisemptya.c | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

(limited to 'src/auxiliaryFunctions/isempty/cisemptya.c')

diff --git a/src/auxiliaryFunctions/isempty/cisemptya.c b/src/auxiliaryFunctions/isempty/cisemptya.c
index 7736f370..8702953a 100644
--- a/src/auxiliaryFunctions/isempty/cisemptya.c
+++ b/src/auxiliaryFunctions/isempty/cisemptya.c
@@ -11,20 +11,10 @@
  */
 
 #include "isempty.h"
+#include "length.h"
 
 float	cisemptya(floatComplex* x, int size) {
-  float* out;
-  int indiceOut[2] = {0};
 
-  out = malloc((uint)size*sizeof(float));
-
-  cfinda(x, size, out, indiceOut);
-
-  if ( out[0] == -1 /*ie tab=NULL*/) {
-    free(out);
-    return 1;
-  }
+  return (size==0) ? 1.0f : 0.0f;
   
-  free(out);
-  return 0;
 }
-- 
cgit