summaryrefslogtreecommitdiff
path: root/src/signalProcessing/ifft/sifftma.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/sifftma.c
parentf5ef103eaad2c4657d76e48e363e4d8aef174540 (diff)
downloadscilab2c-c13651b0f53465466265ea6e05d37de5816fbed0.tar.gz
scilab2c-c13651b0f53465466265ea6e05d37de5816fbed0.tar.bz2
scilab2c-c13651b0f53465466265ea6e05d37de5816fbed0.zip
malloc
Diffstat (limited to 'src/signalProcessing/ifft/sifftma.c')
-rw-r--r--src/signalProcessing/ifft/sifftma.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/signalProcessing/ifft/sifftma.c b/src/signalProcessing/ifft/sifftma.c
index 8e1e118c..0c9c2dd1 100644
--- a/src/signalProcessing/ifft/sifftma.c
+++ b/src/signalProcessing/ifft/sifftma.c
@@ -1,7 +1,7 @@
/*
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 2008 - INRIA - Arnaud Torset
- *
+ *
* This file must be used under the terms of the CeCILL.
* This source file is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -10,6 +10,7 @@
*
*/
+#include <malloc.h>
#include "ifft.h"
#include "zeros.h"
@@ -19,13 +20,13 @@ void sifftma ( float* in , int rows, int cols, float* out){
floatComplex* inCpx;
floatComplex* outCpx;
- ZEROS = malloc((uint)(rows*cols)*sizeof(float));
- outCpx = malloc((uint)(rows*cols)*sizeof(floatComplex));
-
+ ZEROS = malloc((unsigned int)(rows*cols)*sizeof(float));
+ outCpx = malloc((unsigned int)(rows*cols)*sizeof(floatComplex));
+
szerosa(ZEROS,rows,cols);
inCpx=FloatComplexMatrix(in,ZEROS,rows*cols);
-
+
cifftma(inCpx,rows,cols,outCpx);
-
+
creala(outCpx, rows*cols, out);
}