summaryrefslogtreecommitdiff
path: root/src/signalProcessing/fft/sfftma.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/signalProcessing/fft/sfftma.c')
-rw-r--r--src/signalProcessing/fft/sfftma.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/signalProcessing/fft/sfftma.c b/src/signalProcessing/fft/sfftma.c
index c60c9427..925211e6 100644
--- a/src/signalProcessing/fft/sfftma.c
+++ b/src/signalProcessing/fft/sfftma.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 "fft.h"
#include "zeros.h"
@@ -19,13 +20,13 @@ void sfftma ( 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 = (float*) malloc((unsigned int)(rows*cols)*sizeof(float));
+ outCpx = (floatComplex*) malloc((unsigned int)(rows*cols)*sizeof(floatComplex));
+
szerosa(ZEROS,rows,cols);
inCpx=FloatComplexMatrix(in,ZEROS,rows*cols);
-
+
cfftma(inCpx,rows,cols,outCpx);
-
+
creala(outCpx, rows*cols, out);
}