summaryrefslogtreecommitdiff
path: root/src/signalProcessing/interfaces/int_ifft.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/signalProcessing/interfaces/int_ifft.h')
-rw-r--r--src/signalProcessing/interfaces/int_ifft.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/signalProcessing/interfaces/int_ifft.h b/src/signalProcessing/interfaces/int_ifft.h
index 87aa138f..e541b0ee 100644
--- a/src/signalProcessing/interfaces/int_ifft.h
+++ b/src/signalProcessing/interfaces/int_ifft.h
@@ -15,6 +15,11 @@
#ifndef __INT_IFFT_H__
#define __INT_IFFT_H__
+
+#define s0iffts0(in) siffts(in)
+
+#define d0ifftd0(in) diffts(in)
+
#define s0ifftc0(in) FloatComplex(siffts(in),0)
#define d0ifftz0(in) DoubleComplex(diffts(in),0)
@@ -23,12 +28,25 @@
#define z0ifftz0(in) ziffts(in)
-#define s2ifftc2(in,size,out) sifftma(in, size[0], size[1], out)
+#define s2iffts2(in,size,out) sifftma(in, size[0], size[1], out)
-#define d2ifftz2(in,size,out) difftma(in, size[0], size[1], out)
+#define d2ifftd2(in,size,out) difftma(in, size[0], size[1], out)
#define c2ifftc2(in,size,out) cifftma(in, size[0], size[1], out)
#define z2ifftz2(in,size,out) zifftma(in, size[0], size[1], out)
+/* FIXME : malloc here */
+#define s2ifftc2(in,size,out) {float* ZEROS;\
+ ZEROS=malloc((uint)(size[0]*size[1]*sizeof(float));\
+ szerosa(ZEROS,size[0],size[1]);\
+ cifftma(FloatComplexMatrix(in,ZEROS,size[0]*size[1]), size[0], size[1], out);\
+ }
+/* FIXME : malloc here */
+#define d2ifftz2(in,size,out) {double* ZEROS;\
+ ZEROS=malloc((uint)(size[0]*size[1]*sizeof(double));\
+ dzerosa(ZEROS,size[0],size[1]);\
+ zifftma(DoubleComplexMatrix(in,ZEROS,size[0]*size[1]), size[0], size[1], out);\
+ }
+
#endif /* !__INT_IFFT_H__ */