summaryrefslogtreecommitdiff
path: root/src/signalProcessing/ifft/zifftma.c
diff options
context:
space:
mode:
authorjofret2009-04-22 06:23:45 +0000
committerjofret2009-04-22 06:23:45 +0000
commitc13651b0f53465466265ea6e05d37de5816fbed0 (patch)
tree6b04773a0cd92bb23accc997243470e5adae54f3 /src/signalProcessing/ifft/zifftma.c
parentf5ef103eaad2c4657d76e48e363e4d8aef174540 (diff)
downloadscilab2c-c13651b0f53465466265ea6e05d37de5816fbed0.tar.gz
scilab2c-c13651b0f53465466265ea6e05d37de5816fbed0.tar.bz2
scilab2c-c13651b0f53465466265ea6e05d37de5816fbed0.zip
malloc
Diffstat (limited to 'src/signalProcessing/ifft/zifftma.c')
-rw-r--r--src/signalProcessing/ifft/zifftma.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/signalProcessing/ifft/zifftma.c b/src/signalProcessing/ifft/zifftma.c
index b02f0fed..3b1de4cb 100644
--- a/src/signalProcessing/ifft/zifftma.c
+++ b/src/signalProcessing/ifft/zifftma.c
@@ -12,6 +12,7 @@
#define IFFT842 1
#define DFFT2 0
+#include <malloc.h>
#include <math.h>
#include "ifft.h"
#include "lapack.h"
@@ -32,13 +33,13 @@ void zifftma ( doubleComplex* in , int rows, int cols, doubleComplex* out)
int ierr = 0 ;
int isn = 1;
int i = 0;
-
+
int increment=1;
double* realIn = (double*) malloc ( sizeof (double) * (unsigned int) size );
double* imagIn = (double*) malloc ( sizeof (double) * (unsigned int) size );
doubleComplex* inCopy = (doubleComplex*) malloc ( sizeof (doubleComplex) * (unsigned int) size );
-
+
doubleComplex* inTemp = (doubleComplex*) malloc ( sizeof (doubleComplex) * (unsigned int) size );
@@ -46,7 +47,7 @@ void zifftma ( doubleComplex* in , int rows, int cols, doubleComplex* out)
zimaga ( in , size , imagIn) ;
zreala ( in , size , realIn) ;
for (i=0;i<size;i++) inCopy[i]=in[i];
-
+
if ( rows == 1 || cols == 1 )
{
@@ -147,7 +148,7 @@ void zifftma ( doubleComplex* in , int rows, int cols, doubleComplex* out)
}
}
-
+
free(realIn);
free(imagIn);
free(inCopy);