diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2024-12-20 22:31:20 +0100 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2024-12-21 16:30:07 +0100 |
commit | 74d6e04c21bddd435bd74c34dbe027b883772a76 (patch) | |
tree | 4221df9da5a17897296e5f7f841f01b1f6428c74 /src/lib/mdct/mdct_ut_common.h | |
parent | 78649b2f5941e0649db960cafb2997b5ca432be1 (diff) | |
download | atracdenc-74d6e04c21bddd435bd74c34dbe027b883772a76.tar.gz |
[refactoring] Get rid of TFloat parameter. Use float.
Diffstat (limited to 'src/lib/mdct/mdct_ut_common.h')
-rw-r--r-- | src/lib/mdct/mdct_ut_common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/mdct/mdct_ut_common.h b/src/lib/mdct/mdct_ut_common.h index 5c1096c..060e2d0 100644 --- a/src/lib/mdct/mdct_ut_common.h +++ b/src/lib/mdct/mdct_ut_common.h @@ -21,8 +21,8 @@ #include "mdct.h" // Calculate value of error for given magnitude -inline TFloat CalcEps(TFloat magn) { - const float snr = (sizeof(TFloat) == 4) ? -114.0 : -240.0; +inline float CalcEps(float magn) { + const float snr = (sizeof(float) == 4) ? -114.0 : -240.0; return magn * pow(10, (snr / 20.0)); } |