From 6f14f4792a0cde5d0cf2c910506724d61cb95834 Mon Sep 17 00:00:00 2001 From: Osyotr Date: Wed, 11 Mar 2026 16:55:20 +0300 Subject: [PATCH] Fix compilation with GLM_FORCE_SSE2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- glm/detail/type_vec_simd.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/detail/type_vec_simd.inl b/glm/detail/type_vec_simd.inl index ca1d2fd01..2ac561963 100644 --- a/glm/detail/type_vec_simd.inl +++ b/glm/detail/type_vec_simd.inl @@ -228,7 +228,7 @@ struct compute_vec_div : public compute_vec_div vec 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*/