Skip to content

Commit

Permalink
Merge pull request #6001 from dantengsky/fix-compile-error-sse42
Browse files Browse the repository at this point in the history
Fix:  native build with sse42 capability
  • Loading branch information
BohuTANG authored Jun 15, 2022
2 parents 560ba7e + bec540e commit 2c568ca
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions common/io/src/position.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,17 +381,13 @@ fn position_sse42<

if POSITIVE {
if _mm_cmpestrc::<0>(chars_set, chars_count, bytes, 16) > 0 {
return index + _mm_cmpestri::<0>(chars_set, chars_count, bytes, 16);
return index + _mm_cmpestri::<0>(chars_set, chars_count, bytes, 16) as usize;
}
} else {
if _mm_cmpestrc::<_SIDD_NEGATIVE_POLARITY>(chars_set, chars_count, bytes, 16) > 0 {
return index
+ _mm_cmpestri::<_SIDD_NEGATIVE_POLARITY>(
chars_set,
chars_count,
bytes,
16,
);
+ _mm_cmpestri::<_SIDD_NEGATIVE_POLARITY>(chars_set, chars_count, bytes, 16)
as usize;
}
}

Expand Down

0 comments on commit 2c568ca

Please sign in to comment.