arrm, neon: use negate instruction instead of xor in glm_inv_tr_neon()

This commit is contained in:
Recep Aslantas
2021-05-07 01:52:12 +03:00
parent 7f9585ca72
commit 5c22ca3abb
2 changed files with 3 additions and 3 deletions

View File

@@ -97,7 +97,7 @@ glm_inv_tr_neon(mat4 mat) {
x0 = glmm_fmadd(r0, glmm_splat_w(r0),
glmm_fmadd(r1, glmm_splat_w(r1),
vmulq_f32(r2, glmm_splat_w(r2))));
x0 = glmm_xor(x0, glmm_set1(-0.f));
x0 = vnegq_f32(x0);
glmm_store(mat[0], r0);
glmm_store(mat[1], r1);

View File

@@ -22,8 +22,8 @@ glm_mat2_mul_neon(mat2 m1, mat2 m2, mat2 dest) {
x1 = glmm_load(m1[0]); /* d c b a */
x2 = glmm_load(m2[0]); /* h g f e */
dc = vget_high_f32(x1);
ba = vget_low_f32(x1);
dc = vget_high_f32(x1);
ba = vget_low_f32(x1);
/* g g e e, h h f f */
a1 = vtrnq_f32(x2, x2);