Edit

IABSD.fr/ports/audio/caps-plugins/patches/patch-dsp_v4f_IIR2_h

Branch :

  • Show log

    Commit

  • Author : naddy
    Date : 2022-03-11 18:20:04
    Hash : b80841c8
    Message : drop RCS Ids

  • audio/caps-plugins/patches/patch-dsp_v4f_IIR2_h
  • Index: dsp/v4f_IIR2.h
    --- dsp/v4f_IIR2.h.orig
    +++ dsp/v4f_IIR2.h
    @@ -32,7 +32,7 @@
     
     namespace DSP {
     
    -#ifdef __APPLE__
    +#if defined(__APPLE__) || defined(__OpenBSD__)
     inline float pow10f(float f) {return pow(10,f);}
     #endif
     
    @@ -45,8 +45,8 @@ class RBJv4
     			{
     				v4f_t w = v4f_2pi * f;
     
    -				sin = v4f_map<__builtin_sinf> (w);
    -				cos = v4f_map<__builtin_cosf> (w);
    +				sin = v4f_map<sinf> (w);
    +				cos = v4f_map<cosf> (w);
     
     				alpha = sin / (v4f_2 * Q);
     			}
    @@ -549,9 +549,9 @@ class Resonator4fBank
     			{
     				v4f_t * a = state + i*Item;
     				f *= v4f_2pi;
    -				a[0] = v4f_map<__builtin_sinf> (f);
    +				a[0] = v4f_map<sinf> (f);
     				a[0] *= gain;
    -				a[5] = v4f_map<__builtin_cosf> (f);
    +				a[5] = v4f_map<cosf> (f);
     				set_r (i, r);
     			}
     		void set_r (int i, v4f_t r)