diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2025-05-31 18:00:33 +0200 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2025-05-31 18:00:33 +0200 |
commit | 6dfc60e9d4791c3385908c61ad75c4a0093ea1eb (patch) | |
tree | 937b5fe54e21692ea5cd10284b5e3cf60a710454 /src/atrac/at3p/at3p_gha_ut.cpp | |
parent | bb6068829b9dbe1102143a7b69e84ecf4526a1df (diff) | |
download | atracdenc-at3plus-dev.tar.gz |
[AT3P] Fix for Windows buildat3plus-dev
Diffstat (limited to 'src/atrac/at3p/at3p_gha_ut.cpp')
-rw-r--r-- | src/atrac/at3p/at3p_gha_ut.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/atrac/at3p/at3p_gha_ut.cpp b/src/atrac/at3p/at3p_gha_ut.cpp index e25d948..a3cacec 100644 --- a/src/atrac/at3p/at3p_gha_ut.cpp +++ b/src/atrac/at3p/at3p_gha_ut.cpp @@ -1,6 +1,7 @@ #include "at3p_bitstream.h" #include "at3p_gha.h" #include "oma.h" +#include "util.h" #include <gtest/gtest.h> #include <cmath> #include <vector> @@ -18,7 +19,7 @@ struct TTestParam { uint16_t end; }; -static void __attribute__ ((noinline)) Gen(const TTestParam& p, vector<float>& out) +static void atde_noinline Gen(const TTestParam& p, vector<float>& out) { float freq = p.freq / (44100.0 / 16.0); float a = p.amplitude; @@ -35,7 +36,7 @@ static TAt3PGhaData DoAnalize(IGhaProcessor* p, IGhaProcessor::TBufPtr b1, IGhaP return *p->DoAnalize(b1, b2, w1, w2); } -static const TAt3PGhaData __attribute__ ((noinline)) GenAndRunGha(vector<TTestParam> p1, vector<TTestParam> p2) +static const TAt3PGhaData atde_noinline GenAndRunGha(vector<TTestParam> p1, vector<TTestParam> p2) { vector<float> buf1(2048 * 2); |