diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2020-01-07 22:18:19 +0100 |
---|---|---|
committer | Uwe Klotz <uklotz@mixxx.org> | 2020-01-15 00:44:42 +0100 |
commit | 8d8087cf7110abd4935aec709c386febe5ab2fc3 (patch) | |
tree | 8407bfe9fa6d8d3819947efc553f32bda9d378f2 /lib | |
parent | 24affc9376c2d16d459e2464d0277cbd42880e14 (diff) |
C++17: Delete obsolete 'register' storage class specifiers
Diffstat (limited to 'lib')
-rw-r--r-- | lib/reverb/Reverb.cc | 4 | ||||
-rw-r--r-- | lib/reverb/dsp/Delay.h | 6 | ||||
-rw-r--r-- | lib/reverb/dsp/Sine.h | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/reverb/Reverb.cc b/lib/reverb/Reverb.cc index 98b204d886..07f6799839 100644 --- a/lib/reverb/Reverb.cc +++ b/lib/reverb/Reverb.cc @@ -254,8 +254,8 @@ PlateStub::process (sample_t x, sample_t decay, sample_t * _xl, sample_t * _xr) x = input.lattice[3].process (x, indiff2); /* summation point */ - register double xl = x + decay * tank.delay[3].get(); - register double xr = x + decay * tank.delay[1].get(); + double xl = x + decay * tank.delay[3].get(); + double xr = x + decay * tank.delay[1].get(); /* lh */ xl = tank.mlattice[0].process (xl, dediff1); diff --git a/lib/reverb/dsp/Delay.h b/lib/reverb/dsp/Delay.h index 47a6dfcdf5..791e8bfd03 100644 --- a/lib/reverb/dsp/Delay.h +++ b/lib/reverb/dsp/Delay.h @@ -102,11 +102,11 @@ class Delay sample_t x2 = (*this) [n + 2]; /* sample_t (32bit) quicker than double here */ - register sample_t a = + sample_t a = (3 * (x0 - x1) - x_1 + x2) * .5; - register sample_t b = + sample_t b = 2 * x1 + x_1 - (5 * x0 + x2) * .5; - register sample_t c = + sample_t c = (x1 - x_1) * .5; return x0 + (((a * f) + b) * f + c) * f; diff --git a/lib/reverb/dsp/Sine.h b/lib/reverb/dsp/Sine.h index 93ef2cdf00..28aca237a0 100644 --- a/lib/reverb/dsp/Sine.h +++ b/lib/reverb/dsp/Sine.h @@ -72,7 +72,7 @@ class Sine /* advance and return 1 sample */ inline double get() { - register double s = b*y[z]; + double s = b*y[z]; z ^= 1; s -= y[z]; return y[z] = s; @@ -101,7 +101,7 @@ class DampedSine inline double get() { - register double s = b * y[z]; + double s = b * y[z]; z ^= 1; s -= d * y[z]; return y[z] = d * s; |