Fix compilation with GLM_FORCE_SSE2

The error message is
glm/detail/type_vec_simd.inl:232:39: error: there are no arguments to ‘_mm_mullo_epi32’ that depend on a template parameter, so a declaration of ‘_mm_mullo_epi32’ must be available
This commit is contained in:
Osyotr
2026-03-11 16:55:20 +03:00
committed by Christophe
parent e8642318a0
commit 6f14f4792a

View File

@@ -228,7 +228,7 @@ struct compute_vec_div<L, T, Q, true> : public compute_vec_div<L, T, Q, false>
vec<L, int, Q> Result;
glm_i32vec4 ia = a.data;
glm_i32vec4 ib = b.data;
#ifdef __SSE4_1__ // modern CPU - use SSE 4.1
#if GLM_ARCH & GLM_ARCH_SSE41_BIT
Result.data = _mm_mullo_epi32(ia, ib);
#else // old CPU - use SSE 2
__m128i tmp1 = _mm_mul_epu32(ia, ib); /* mul 2,0*/