From f82be5517517aba36eaf0080f278231b61f694e1 Mon Sep 17 00:00:00 2001 From: Andrei Drexler Date: Mon, 14 Oct 2024 22:24:29 +0200 Subject: [PATCH] Fix comparisons in SV_PushMove SSE2 code path (#345) --- Quake/sv_phys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Quake/sv_phys.c b/Quake/sv_phys.c index a5516d59f..bbc8dce03 100644 --- a/Quake/sv_phys.c +++ b/Quake/sv_phys.c @@ -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]