From 1bb2c5dfe06133f4f7c5010596bf66cce9c50b0d Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 1 Nov 2024 14:22:33 -0400 Subject: [PATCH] FilterPlotter gets new SIMD treatment (#62) --- include-extras/sst/filters/FilterPlotter.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include-extras/sst/filters/FilterPlotter.h b/include-extras/sst/filters/FilterPlotter.h index c1f6a5a..9798f1e 100644 --- a/include-extras/sst/filters/FilterPlotter.h +++ b/include-extras/sst/filters/FilterPlotter.h @@ -102,7 +102,7 @@ class FilterPlotter { // reset filter state std::fill(filterState.R, &filterState.R[sst::filters::n_filter_registers], - _mm_setzero_ps()); + SIMD_MM(setzero_ps)()); for (int i = 0; i < 4; ++i) { @@ -113,10 +113,10 @@ class FilterPlotter for (int i = 0; i < numSamples; ++i) { - auto yVec = filterUnitPtr(&filterState, _mm_set_ps1(inBuffer[i])); + auto yVec = filterUnitPtr(&filterState, SIMD_MM(set_ps1)(inBuffer[i])); float yArr alignas(16)[4]; - _mm_store_ps(yArr, yVec); + SIMD_MM(store_ps)(yArr, yVec); outBuffer[i] = yArr[0]; } };