Skip to content

Commit 0437fd0

Browse files
committed
aligned-sse-load
1 parent 7d270d7 commit 0437fd0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/engine/qcommon/q_math.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -744,9 +744,9 @@ void SetPlaneSignbits( cplane_t *out )
744744
int BoxOnPlaneSide( const bounds_t &bounds, const cplane_t *p )
745745
{
746746
#if defined(DAEMON_USE_ARCH_INTRINSICS_i686_sse)
747-
auto mins = sseLoadVec3Unsafe( bounds.mins );
748-
auto maxs = sseLoadVec3Unsafe( bounds.maxs );
749-
auto normal = sseLoadVec3Unsafe( p->normal );
747+
auto mins = _mm_load_ps( bounds.mins );
748+
auto maxs = _mm_load_ps( bounds.maxs );
749+
auto normal = _mm_load_ps( p->normal );
750750

751751
auto prod0 = _mm_mul_ps( maxs, normal );
752752
auto prod1 = _mm_mul_ps( mins, normal );

0 commit comments

Comments
 (0)