From 032d6b826a8a139f8329d512bdb307b21d27918e Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Fri, 11 Aug 2023 02:54:53 -0400 Subject: [PATCH] Define _MM_FROUND_NO_EXC on ARM64. --- include/simd/functions.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/simd/functions.hpp b/include/simd/functions.hpp index 94e7d7b7..890f4265 100644 --- a/include/simd/functions.hpp +++ b/include/simd/functions.hpp @@ -160,6 +160,11 @@ inline float_4 atan2(float_4 x, float_4 y) { using std::trunc; +// SIMDe defines _MM_FROUND_NO_EXC with a prefix +#ifndef _MM_FROUND_NO_EXC + #define _MM_FROUND_NO_EXC SIMDE_MM_FROUND_NO_EXC +#endif + inline float_4 trunc(float_4 a) { return float_4(_mm_round_ps(a.v, _MM_FROUND_TO_ZERO | _MM_FROUND_NO_EXC)); }