diff --git a/modules/dsp/chowdsp_math/Math/chowdsp_TrigApprox.h b/modules/dsp/chowdsp_math/Math/chowdsp_TrigApprox.h index f7b7ce9b8..5b2497e9f 100644 --- a/modules/dsp/chowdsp_math/Math/chowdsp_TrigApprox.h +++ b/modules/dsp/chowdsp_math/Math/chowdsp_TrigApprox.h @@ -23,11 +23,13 @@ namespace TrigApprox return T ((int) x); } +#if ! CHOWDSP_NO_XSIMD template xsimd::batch truncate (xsimd::batch x) { return xsimd::to_float (xsimd::to_int (x)); } +#endif /** Fast method to wrap a value into the range [-pi, pi] */ template