mirror of
https://git.freebsd.org/ports.git
synced 2025-06-15 09:40:35 -04:00
- 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
15 lines
300 B
C
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;
|