From d7c0edcbd90e50e4b36f47f76853006c5abb67d7 Mon Sep 17 00:00:00 2001 From: myfreeer Date: Sat, 8 Apr 2023 13:40:46 +0800 Subject: [PATCH] simd128: minor lint --- include/cglm/mat4.h | 2 +- include/cglm/simd/wasm.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cglm/mat4.h b/include/cglm/mat4.h index c75dfa5..932878d 100644 --- a/include/cglm/mat4.h +++ b/include/cglm/mat4.h @@ -198,7 +198,7 @@ void glm_mat4_zero(mat4 mat) { #if defined(__wasm__) && defined(__wasm_simd128__) glmm_128 x0; - x0 = wasm_f32x4_const(0.f, 0.f, 0.f, 0.f); + x0 = wasm_f32x4_const_splat(0.f); glmm_store(mat[0], x0); glmm_store(mat[1], x0); glmm_store(mat[2], x0); diff --git a/include/cglm/simd/wasm.h b/include/cglm/simd/wasm.h index 02f17e5..48cda4c 100644 --- a/include/cglm/simd/wasm.h +++ b/include/cglm/simd/wasm.h @@ -29,7 +29,7 @@ static inline glmm_128 glmm_abs(glmm_128 x) { - return wasm_v128_andnot(x, wasm_f32x4_const_splat(-0.0f)); + return wasm_f32x4_abs(x); } static inline