From 228e919ecb801591a4982460ee0f4e8d00cabc37 Mon Sep 17 00:00:00 2001 From: jatin Date: Tue, 10 Oct 2023 17:57:43 -0700 Subject: [PATCH] Fixing no SIMD failure --- modules/dsp/chowdsp_math/Math/chowdsp_TrigApprox.h | 2 ++ 1 file changed, 2 insertions(+) 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