Skip to content

Commit

Permalink
Fix FPU unit-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
x42 committed Oct 15, 2020
1 parent 16d9e72 commit e1b3805
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions libs/ardour/test/fpu_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit e1b3805

Please sign in to comment.