--- dsp/v4f_IIR2.h.orig 2020-05-30 02:36:39 UTC +++ dsp/v4f_IIR2.h @@ -34,7 +34,7 @@ namespace DSP { #if defined(__APPLE__) || defined(__FreeBSD__) -inline float exp10f(float f) {return __exp10f(f);} +inline float exp10f(float f) {return powf(10., f);} #endif @@ -47,8 +47,8 @@ class RBJv4 { v4f_t w = v4f_2pi * f; - sin = v4f_map<__builtin_sinf> (w); - cos = v4f_map<__builtin_cosf> (w); + sin = v4f_map (w); + cos = v4f_map (w); alpha = sin / (v4f_2 * Q); } @@ -551,9 +551,9 @@ class Resonator4fBank { v4f_t * a = state + i*Item; f *= v4f_2pi; - a[0] = v4f_map<__builtin_sinf> (f); + a[0] = v4f_map (f); a[0] *= gain; - a[5] = v4f_map<__builtin_cosf> (f); + a[5] = v4f_map (f); set_r (i, r); } void set_r (int i, v4f_t r)