__forceinline float dsp_tanhf_noclip(float x) { return x * ( 27 + x * x ) / ( 27 + 9 * x * x ); } __forceinline float dsp_tanhf(float x) { if( x < -3 ) return -1; else if( x > 3 ) return 1; else return dsp_tanhf_noclip(x); }