Skip to content

Commit

Permalink
Fix comparisons in SV_PushMove SSE2 code path (andrei-drexler#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-drexler committed Oct 14, 2024
1 parent 3dd2e50 commit f82be55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Quake/sv_phys.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,9 +492,9 @@ void SV_PushMove (edict_t *pusher, float movetime)
__m128 check_absmax_vec = _mm_loadu_ps (check->v.absmax);
__m128 maxs_vec = _mm_loadu_ps (maxs);
__m128 mins_vec = _mm_loadu_ps (mins);
if (_mm_movemask_ps (_mm_cmpngt_ps (check_absmin_vec, maxs_vec)) & 7)
if (_mm_movemask_ps (_mm_cmpnlt_ps (check_absmin_vec, maxs_vec)) & 7)
continue;
if (_mm_movemask_ps (_mm_cmpnlt_ps (check_absmax_vec, mins_vec)) & 7)
if (_mm_movemask_ps (_mm_cmpngt_ps (check_absmax_vec, mins_vec)) & 7)
continue;
#else
if ( check->v.absmin[0] >= maxs[0]
Expand Down

0 comments on commit f82be55

Please sign in to comment.