Skip to content

Commit

Permalink
structural: bugfix for x86
Browse files Browse the repository at this point in the history
  • Loading branch information
chengsun committed Jun 16, 2022
1 parent c99be14 commit 98cb02e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structural.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ mod x86 {
#[inline]
unsafe fn classify_one_avx2(&self, input: __m256i) -> ClassifyOneAvx2
{
let parens = _mm256_cmpgt_epi8(_mm256_set1_epi8(2), _mm256_sub_epi8(input, _mm256_set1_epi8(b'(' as i8)));
let parens = _mm256_cmpgt_epi8(_mm256_set1_epi8(i8::MIN + 2), _mm256_sub_epi8(input, _mm256_set1_epi8(b'(' as i8 + i8::MIN)));
let quote = _mm256_cmpeq_epi8(input, _mm256_set1_epi8(b'"' as i8));
let backslash = _mm256_cmpeq_epi8(input, _mm256_set1_epi8(b'\\' as i8));

Expand Down

0 comments on commit 98cb02e

Please sign in to comment.