From e1b38058a8c3af7e3a27d87c15e5568103da765d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 15 Oct 2020 19:38:10 +0200 Subject: [PATCH] Fix FPU unit-tests --- libs/ardour/test/fpu_test.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libs/ardour/test/fpu_test.cc b/libs/ardour/test/fpu_test.cc index 441f805f90..50baba744a 100644 --- a/libs/ardour/test/fpu_test.cc +++ b/libs/ardour/test/fpu_test.cc @@ -74,8 +74,10 @@ FPUTest::run (size_t align_max) compare (string_compose ("Copy Vector not aligned off: %1 cnt: %2", off, cnt), cnt); /* find_peaks */ - float pk_test_max; - float pk_comp_max; + pk_test = _test1[off]; + pk_comp = _comp1[off]; + float pk_test_max = _test1[off]; + float pk_comp_max = _comp1[off]; find_peaks (&_test1[off], cnt, &pk_test, &pk_test_max); default_find_peaks (&_comp1[off], cnt, &pk_comp, &pk_comp_max); CPPUNIT_ASSERT_MESSAGE (string_compose ("Find peaks not aligned off: %1 cnt: %2", off, cnt), fabsf (pk_test - pk_comp) < 2e-6 && fabsf (pk_test_max - pk_comp_max) < 2e-6); @@ -127,7 +129,7 @@ void FPUTest::sseTest () { PBD::FPU* fpu = PBD::FPU::instance (); - if (!fpu->has_avx ()) { + if (!fpu->has_sse ()) { printf ("SSE is not available at run-time\n"); return; }