Kaynağa Gözat

Update links in comments, to Laurent de Soras's exp2 approximation info

dds
PaulStoffregen 5 yıl önce
ebeveyn
işleme
a94f95fe80
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. +1
    -1
      filter_variable.cpp
  2. +1
    -1
      synth_waveform.cpp

+ 1
- 1
filter_variable.cpp Dosyayı Görüntüle

@@ -120,7 +120,7 @@ void AudioFilterStateVariable::update_variable(const int16_t *in,
n = n << 1;
#else
// exp2 algorithm by Laurent de Soras
// http://www.musicdsp.org/showone.php?id=106
// https://www.musicdsp.org/en/latest/Other/106-fast-exp2-approximation.html
n = (n + 134217728) << 3;
n = multiply_32x32_rshift32_rounded(n, n);
n = multiply_32x32_rshift32_rounded(n, 715827883) << 3;

+ 1
- 1
synth_waveform.cpp Dosyayı Görüntüle

@@ -221,7 +221,7 @@ void AudioSynthWaveformModulated::update(void)
n = n << 1;
#else
// exp2 algorithm by Laurent de Soras
// http://www.musicdsp.org/showone.php?id=106
// https://www.musicdsp.org/en/latest/Other/106-fast-exp2-approximation.html
n = (n + 134217728) << 3;
n = multiply_32x32_rshift32_rounded(n, n);
n = multiply_32x32_rshift32_rounded(n, 715827883) << 3;

Yükleniyor…
İptal
Kaydet