Skip to content

Commit

Permalink
aligned-sse-load
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed Dec 30, 2024
1 parent e108b59 commit ff89987
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/engine/qcommon/q_math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit ff89987

Please sign in to comment.