Skip to content

Commit 543ee07

Browse files
author
Mengyao Zhao
committed
fixed the wrong operator
1 parent 88e5664 commit 543ee07

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ssw.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,9 @@ static alignment_end* sw_sse2_byte (const int8_t* ref,
308308
_mm_store_si128(pvHStore + j, vH);
309309
vH = _mm_subs_epu8(vH, vGapO);
310310
vF = _mm_subs_epu8(vF, vGapE);
311-
if (UNLIKELY(! _mm_movemask_epi8(_mm_cmpgt_epi8(vF, vH)))) goto end;
311+
vTemp = _mm_subs_epu8(vF, vH);
312+
vTemp = _mm_cmpeq_epi8 (vTemp, vZero);
313+
if (UNLIKELY(_mm_movemask_epi8(vTemp) == 0xffff)) goto end;
312314
}
313315
}
314316

0 commit comments

Comments
 (0)