ports/math/sfft/files/patch-src_fft.h
Robert Clausecker 9804638940 math/sfft: port to armv7/aarch64, touch up
- replace complex.h hack with less crude hack
 - use sse2neon to build on armv7/aarch64
 - armv7 should work, but falls to an unrelated issue
 - touch up CFLAGS slightly
 - rework do-test
2024-10-21 11:36:01 +02:00

15 lines
300 B
C

--- src/fft.h.orig 2024-10-15 16:15:00 UTC
+++ src/fft.h
@@ -32,6 +32,12 @@
//#define USE_FLOAT
#define USE_DOUBLE
+#ifdef __cplusplus
+#define complex __complex__
+#undef I
+#define I ((float __complex__)1.0j)
+#endif
+
#ifdef USE_FLOAT
typedef float complex complex_t;
typedef float real_t;