simd128: inline _mm_cvtss_f32

This commit is contained in:
myfreeer
2023-04-01 19:34:19 +08:00
parent 48d6ab79bd
commit 73adfe08c0
3 changed files with 29 additions and 26 deletions

View File

@@ -262,7 +262,8 @@ glm_quat_normalize_to(versor q, versor dest) {
x0 = glmm_load(q);
xdot = glmm_vdot(x0, x0);
dot = _mm_cvtss_f32(xdot);
// dot = _mm_cvtss_f32(xdot);
dot = wasm_f32x4_extract_lane(xdot, 0);
if (dot <= 0.0f) {
glm_quat_identity(dest);