mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
simd: organise SIMD-functions
* optimize dot product
This commit is contained in:
@@ -218,7 +218,7 @@ glm_quat_normalize_to(versor q, versor dest) {
|
||||
float dot;
|
||||
|
||||
x0 = glmm_load(q);
|
||||
xdot = glmm_dot(x0, x0);
|
||||
xdot = glmm_vdot(x0, x0);
|
||||
dot = _mm_cvtss_f32(xdot);
|
||||
|
||||
if (dot <= 0.0f) {
|
||||
|
||||
Reference in New Issue
Block a user