mirror of
https://github.com/recp/cglm.git
synced 2025-12-24 12:32:40 +00:00
mat4: wasm simd128 for glm_mat4_inv
The function `glm_mat4_inv_wasm` has been implemented, but not used in `glm_mat4_inv`. This commit adds a conditional macro to add the case of wasm and simd128 case for calling `glm_mat4_inv_wasm`.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user