Remove restrict from in+out parameters

This commit is contained in:
Chris Robinson
2019-04-28 08:51:50 -07:00
parent 014936ceff
commit ec869234f7
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -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;
};
+2 -2
View File
@@ -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>;