Skip to content

Commit

Permalink
Merge pull request #421 from myfreeer/patch-1
Browse files Browse the repository at this point in the history
mat4: wasm simd128 for glm_mat4_inv
  • Loading branch information
recp authored Jul 3, 2024
2 parents be0defb + 07dc952 commit ed731f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/cglm/mat4.h
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,9 @@ glm_mat4_det(mat4 mat) {
CGLM_INLINE
void
glm_mat4_inv(mat4 mat, mat4 dest) {
#if defined( __SSE__ ) || defined( __SSE2__ )
#if defined(__wasm__) && defined(__wasm_simd128__)
glm_mat4_inv_wasm(mat, dest);
#elif defined( __SSE__ ) || defined( __SSE2__ )
glm_mat4_inv_sse2(mat, dest);
#elif defined(CGLM_NEON_FP)
glm_mat4_inv_neon(mat, dest);
Expand Down

0 comments on commit ed731f9

Please sign in to comment.