NEON mask order is flipped

This commit is contained in:
Adam Lusch 2025-03-21 17:35:01 -05:00
parent bd192a3955
commit 9d354b2b55

View file

@ -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;
}