From 5d60c17435b1cdfddf02b1a0a739110271acdc00 Mon Sep 17 00:00:00 2001 From: myfreeer Date: Mon, 6 Mar 2023 16:23:51 +0800 Subject: [PATCH] simd128: fix tests for vec4_norm_one and vec4_norm_inf --- 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 2e45593..a915164 100644 --- a/include/cglm/simd/wasm.h +++ b/include/cglm/simd/wasm.h @@ -102,7 +102,7 @@ _mm_set_ps(float __z, float __y, float __x, float __w) static inline glmm_128 glmm_abs(glmm_128 x) { - return wasm_v128_andnot(wasm_f32x4_splat(-0.0f), x); + return wasm_v128_andnot(x, wasm_f32x4_splat(-0.0f)); } static inline