diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2024-07-08 21:42:48 +0000 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2024-07-09 23:07:40 +0200 |
commit | c4b19af8391640f143aaf446658354dcf01432d1 (patch) | |
tree | 68ebb11f38eaec53e16879e59ce776bd249d8491 /src/config.h | |
parent | f8eabde1e1a2fa6bdb2b09dcdee5cecb750beb30 (diff) | |
download | atracdenc-c4b19af8391640f143aaf446658354dcf01432d1.tar.gz |
Allow to configure atracdenc to use float instead of double
The default is double for hystorical reason.
Actually no any reason to use double precision float point
calculation for all processing. AT3P encoding will use float
except places were we really need double precision.
So this default will be changed to float in near future and
this option will be removed.
Diffstat (limited to 'src/config.h')
-rw-r--r-- | src/config.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/config.h b/src/config.h index ed5a149..d3635df 100644 --- a/src/config.h +++ b/src/config.h @@ -18,21 +18,18 @@ #pragma once -#define CONFIG_DOUBLE - #ifndef NOMINMAX #define NOMINMAX #endif -#ifdef CONFIG_DOUBLE -# define kiss_fft_scalar double -typedef double TFloat; -#else +#ifdef ATDE_USE_FLOAT # define kiss_fft_scalar float typedef float TFloat; +#else +# define kiss_fft_scalar double +typedef double TFloat; #endif - #ifndef M_PI #define M_PI (3.14159265358979323846) #endif |