aboutsummaryrefslogtreecommitdiffstats
path: root/include/libgha.h
diff options
context:
space:
mode:
authorDaniil Cherednik <dan.cherednik@gmail.com>2024-07-06 10:56:15 +0000
committerDaniil Cherednik <dan.cherednik@gmail.com>2024-07-06 10:56:15 +0000
commit41705edc6d36ad013cbcb171d53891f3c33764d8 (patch)
treec88a75ab8089720d0e354037d0585eb1d51af20a /include/libgha.h
parent311a633f24410ce3302526941b32639aa8869654 (diff)
downloadlibgha-master.tar.gz
Make possible to use double and own fft lib.HEADmaster
Projects which use the library may have own fft librray. Projects may use double precision floating point numbers.
Diffstat (limited to 'include/libgha.h')
-rw-r--r--include/libgha.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/libgha.h b/include/libgha.h
index f3221f8..5ff09c8 100644
--- a/include/libgha.h
+++ b/include/libgha.h
@@ -6,7 +6,12 @@ extern "C"
{
#endif /* __cplusplus */
-#define FLOAT float
+#ifdef GHA_USE_DOUBLE_API
+# define kiss_fft_scalar double
+# define FLOAT double
+#else
+# define FLOAT float
+#endif
#include <stddef.h>