Skip to content

Commit

Permalink
Fixing no SIMD failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Oct 11, 2023
1 parent 2062403 commit 228e919
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/dsp/chowdsp_math/Math/chowdsp_TrigApprox.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ namespace TrigApprox
return T ((int) x);
}

#if ! CHOWDSP_NO_XSIMD
template <typename T>
xsimd::batch<T> truncate (xsimd::batch<T> x)
{
return xsimd::to_float (xsimd::to_int (x));
}
#endif

/** Fast method to wrap a value into the range [-pi, pi] */
template <typename T>
Expand Down

0 comments on commit 228e919

Please sign in to comment.