Remove restrict from in+out parameters
This commit is contained in:
@@ -61,7 +61,7 @@ void BandSplitterR<Real>::process(Real *hpout, Real *lpout, const Real *input, c
|
||||
}
|
||||
|
||||
template<typename Real>
|
||||
void BandSplitterR<Real>::applyHfScale(Real *RESTRICT samples, const Real hfscale, const int count)
|
||||
void BandSplitterR<Real>::applyHfScale(Real *samples, const Real hfscale, const int count)
|
||||
{
|
||||
ASSUME(count > 0);
|
||||
|
||||
@@ -112,7 +112,7 @@ void SplitterAllpassR<Real>::init(Real f0norm)
|
||||
}
|
||||
|
||||
template<typename Real>
|
||||
void SplitterAllpassR<Real>::process(Real *RESTRICT samples, int count)
|
||||
void SplitterAllpassR<Real>::process(Real *samples, int count)
|
||||
{
|
||||
ASSUME(count > 0);
|
||||
|
||||
@@ -120,7 +120,7 @@ void SplitterAllpassR<Real>::process(Real *RESTRICT samples, int count)
|
||||
Real z1{this->z1};
|
||||
auto proc_sample = [coeff,&z1](const Real in) noexcept -> Real
|
||||
{
|
||||
Real out{in*coeff + z1};
|
||||
const Real out{in*coeff + z1};
|
||||
z1 = in - out*coeff;
|
||||
return out;
|
||||
};
|
||||
|
||||
@@ -17,7 +17,7 @@ public:
|
||||
void init(Real f0norm);
|
||||
void clear() noexcept { lp_z1 = lp_z2 = ap_z1 = 0.0f; }
|
||||
void process(Real *hpout, Real *lpout, const Real *input, const int count);
|
||||
void applyHfScale(Real *RESTRICT samples, const Real hfscale, const int count);
|
||||
void applyHfScale(Real *samples, const Real hfscale, const int count);
|
||||
};
|
||||
using BandSplitter = BandSplitterR<float>;
|
||||
|
||||
@@ -32,7 +32,7 @@ class SplitterAllpassR {
|
||||
public:
|
||||
void init(Real f0norm);
|
||||
void clear() noexcept { z1 = 0.0f; }
|
||||
void process(Real *RESTRICT samples, int count);
|
||||
void process(Real *samples, int count);
|
||||
};
|
||||
using SplitterAllpass = SplitterAllpassR<float>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user