Skip to content

Commit

Permalink
fix compile error: native build with sse42 capability
Browse files Browse the repository at this point in the history
  • Loading branch information
dantengsky committed Jun 15, 2022
1 parent 197cbcf commit 9f8e69f
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 9f8e69f

Please sign in to comment.