From 575616963b34c0406c1cd9ee78ee71cbc709fb00 Mon Sep 17 00:00:00 2001 From: John Xu Date: Tue, 6 Feb 2024 21:28:31 +0800 Subject: [PATCH] fix: incorrect conditional judgment in sse4.2 tests (#153) --- src/simd/sse42.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simd/sse42.rs b/src/simd/sse42.rs index d67d903..d6fbf02 100644 --- a/src/simd/sse42.rs +++ b/src/simd/sse42.rs @@ -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; } @@ -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; }