Skip to content

Commit 6f14f47

Browse files
Osyotrchristophe-lunarg
authored andcommitted
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
1 parent e864231 commit 6f14f47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glm/detail/type_vec_simd.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ struct compute_vec_div<L, T, Q, true> : public compute_vec_div<L, T, Q, false>
228228
vec<L, int, Q> Result;
229229
glm_i32vec4 ia = a.data;
230230
glm_i32vec4 ib = b.data;
231-
#ifdef __SSE4_1__ // modern CPU - use SSE 4.1
231+
#if GLM_ARCH & GLM_ARCH_SSE41_BIT
232232
Result.data = _mm_mullo_epi32(ia, ib);
233233
#else // old CPU - use SSE 2
234234
__m128i tmp1 = _mm_mul_epu32(ia, ib); /* mul 2,0*/

0 commit comments

Comments
 (0)