mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
simd128: minor lint
This commit is contained in:
@@ -198,7 +198,7 @@ void
|
|||||||
glm_mat4_zero(mat4 mat) {
|
glm_mat4_zero(mat4 mat) {
|
||||||
#if defined(__wasm__) && defined(__wasm_simd128__)
|
#if defined(__wasm__) && defined(__wasm_simd128__)
|
||||||
glmm_128 x0;
|
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[0], x0);
|
||||||
glmm_store(mat[1], x0);
|
glmm_store(mat[1], x0);
|
||||||
glmm_store(mat[2], x0);
|
glmm_store(mat[2], x0);
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
static inline
|
static inline
|
||||||
glmm_128
|
glmm_128
|
||||||
glmm_abs(glmm_128 x) {
|
glmm_abs(glmm_128 x) {
|
||||||
return wasm_v128_andnot(x, wasm_f32x4_const_splat(-0.0f));
|
return wasm_f32x4_abs(x);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline
|
static inline
|
||||||
|
|||||||
Reference in New Issue
Block a user