From 974900dc81d0727def4c1cdd7077286d43056149 Mon Sep 17 00:00:00 2001 From: Adrian Jenkins Date: Tue, 11 May 2021 12:26:18 +0100 Subject: [PATCH] Added define statements for USE_PRECISION_FLOAT to make both the FFTW and Panphasia routines either both single precision or both double precision. :wq --- external/panphasia_ho/PAN_FFTW3.h | 8 ++++++++ external/panphasia_ho/panphasia_functions.h | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/external/panphasia_ho/PAN_FFTW3.h b/external/panphasia_ho/PAN_FFTW3.h index 687d43a..c4d0465 100644 --- a/external/panphasia_ho/PAN_FFTW3.h +++ b/external/panphasia_ho/PAN_FFTW3.h @@ -1,6 +1,14 @@ // Define macros for FFTW3 to allow swapping // between single/double precision FTs +#ifndef USE_PRECISION_FLOAT + +#define FOURIER_DOUBLE + +#endif + + + #define FOURIER_DOUBLE #ifdef FOURIER_DOUBLE diff --git a/external/panphasia_ho/panphasia_functions.h b/external/panphasia_ho/panphasia_functions.h index e7622a4..77327cb 100644 --- a/external/panphasia_ho/panphasia_functions.h +++ b/external/panphasia_ho/panphasia_functions.h @@ -3,8 +3,10 @@ // By default Panphasia is computed at single // precision. To override this define PAN_DOUBLE -//#define PAN_DOUBLE_PRECISION 8 +#ifndef USE_PRECISION_FLOAT +#define PAN_DOUBLE_PRECISION 8 +#endif #ifndef PAN_DOUBLE_PRECISION