Skip to content

Commit

Permalink
fix: incorrect conditional judgment in sse4.2 tests (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyxushuai authored Feb 6, 2024
1 parent 1f7b2a4 commit 5756169
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simd/sse42.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ unsafe fn match_header_value_char_16_sse(buf: &[u8]) -> usize {

#[test]
fn sse_code_matches_uri_chars_table() {
if is_x86_feature_detected!("sse4.2") {
if !is_x86_feature_detected!("sse4.2") {
return;
}

Expand All @@ -124,7 +124,7 @@ fn sse_code_matches_uri_chars_table() {

#[test]
fn sse_code_matches_header_value_chars_table() {
if is_x86_feature_detected!("sse4.2") {
if !is_x86_feature_detected!("sse4.2") {
return;
}

Expand Down

0 comments on commit 5756169

Please sign in to comment.