From ff89987b68e1729052ad5898a014169ddc774a85 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Mon, 30 Dec 2024 15:32:04 +0100 Subject: [PATCH] aligned-sse-load --- src/engine/qcommon/q_math.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/qcommon/q_math.cpp b/src/engine/qcommon/q_math.cpp index 6f8f5ea9db..3e612dadf2 100644 --- a/src/engine/qcommon/q_math.cpp +++ b/src/engine/qcommon/q_math.cpp @@ -744,9 +744,9 @@ void SetPlaneSignbits( cplane_t *out ) int BoxOnPlaneSide( const bounds_t &bounds, const cplane_t *p ) { #if defined(DAEMON_USE_ARCH_INTRINSICS_i686_sse) - auto mins = sseLoadVec3Unsafe( bounds.mins ); - auto maxs = sseLoadVec3Unsafe( bounds.maxs ); - auto normal = sseLoadVec3Unsafe( p->normal ); + auto mins = _mm_load_ps( bounds.mins ); + auto maxs = _mm_load_ps( bounds.maxs ); + auto normal = _mm_load_ps( p->normal ); auto prod0 = _mm_mul_ps( maxs, normal ); auto prod1 = _mm_mul_ps( mins, normal );