From 35a12ed033d4de03c12a5fe6a5c8862663d4d144 Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Mon, 1 Apr 2024 00:52:59 +0300 Subject: [PATCH] make SSE2-only features not available in SSE --- include/cglm/simd/x86.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/cglm/simd/x86.h b/include/cglm/simd/x86.h index eb227e7..071a272 100644 --- a/include/cglm/simd/x86.h +++ b/include/cglm/simd/x86.h @@ -218,6 +218,7 @@ glmm_norm_inf(__m128 a) { return _mm_cvtss_f32(glmm_vhmax(glmm_abs(a))); } +#if defined(__SSE2__) static inline __m128 glmm_load3(float v[3]) { @@ -236,6 +237,7 @@ glmm_store3(float v[3], __m128 vx) { _mm_storel_pi(CGLM_CASTPTR_ASSUME_ALIGNED(v, __m64), vx); _mm_store_ss(&v[2], glmm_shuff1(vx, 2, 2, 2, 2)); } +#endif static inline __m128