simd128: fix tests for vec4_norm_one and vec4_norm_inf

This commit is contained in:
myfreeer
2023-03-06 16:23:51 +08:00
parent da5f18f10f
commit 5d60c17435

View File

@@ -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