Skip to content

Commit

Permalink
FilterPlotter gets new SIMD treatment (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul authored Nov 1, 2024
1 parent fa419fd commit 1bb2c5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include-extras/sst/filters/FilterPlotter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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];
}
};
Expand Down

0 comments on commit 1bb2c5d

Please sign in to comment.