From 9d354b2b55aeb6af9604f32f5fd3b5b8f7fe7eb8 Mon Sep 17 00:00:00 2001 From: Adam Lusch Date: Fri, 21 Mar 2025 17:35:01 -0500 Subject: [PATCH] NEON mask order is flipped --- glm/detail/func_common_simd.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/detail/func_common_simd.inl b/glm/detail/func_common_simd.inl index 818bb1f5..e775fab5 100644 --- a/glm/detail/func_common_simd.inl +++ b/glm/detail/func_common_simd.inl @@ -553,7 +553,7 @@ namespace glm { GLM_FUNC_QUALIFIER static vec<4, float, Q> call(vec<3, float, Q> const& a) { vec<4, float, Q> v; - static const uint32x4_t mask = { 0, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF }; + static const uint32x4_t mask = { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0 }; v.data = vbslq_f32(mask, a.data, vdupq_n_f32(0)); return v; }