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 /test | |
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 'test')
-rw-r--r-- | test/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index c75445e..3818b28 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -3,6 +3,10 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.1) set (CMAKE_CXX_STANDARD 11) set (CMAKE_C_STANDARD 11) +if (ATDE_USE_FLOAT) + add_compile_definitions(ATDE_USE_FLOAT) +endif() + set(atracdenc_ut ${CMAKE_SOURCE_DIR}/src/lib/mdct/mdct_ut.cpp ${CMAKE_SOURCE_DIR}/src/lib/bitstream/bitstream_ut.cpp |