From f24ec41a26ff215e772a90b5e71c9aaaef66e25b Mon Sep 17 00:00:00 2001 From: myfreeer Date: Sun, 26 Mar 2023 17:57:29 +0800 Subject: [PATCH] simd128: inline _mm_shuffle_ps for glmm_shuff1 --- include/cglm/simd/wasm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cglm/simd/wasm.h b/include/cglm/simd/wasm.h index a279df1..38c992e 100644 --- a/include/cglm/simd/wasm.h +++ b/include/cglm/simd/wasm.h @@ -20,7 +20,7 @@ (((__mask) >> 4) & 0x3) + 4, \ (((__mask) >> 6) & 0x3) + 4)) -#define glmm_shuff1(xmm, z, y, x, w) _mm_shuffle_ps(xmm, xmm, _MM_SHUFFLE(z, y, x, w)) +#define glmm_shuff1(xmm, z, y, x, w) wasm_i32x4_shuffle(xmm, xmm, w, x, y, z) #define glmm_splat(x, lane) glmm_shuff1(x, lane, lane, lane, lane)