Skip to content

Commit

Permalink
fix avx simd on x86
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Jun 10, 2024
1 parent 2c9011e commit 10942b3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/simd/avx2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ pub(crate) unsafe fn match_uri_vectored(bytes: &[u8]) -> usize {
unsafe fn match_url_char_32_avx(buf: &[u8]) -> usize {

Check warning on line 29 in src/simd/avx2.rs

View workflow job for this annotation

GitHub Actions / check x86

function is never used: `match_url_char_32_avx`
debug_assert!(buf.len() >= 32);

/*
#[cfg(target_arch = "x86")]
use core::arch::x86::*;
#[cfg(target_arch = "x86_64")]
*/
use core::arch::x86_64::*;

let ptr = buf.as_ptr();
Expand Down Expand Up @@ -96,11 +94,9 @@ pub(crate) unsafe fn match_header_value_vectored(bytes: &[u8]) -> usize {
unsafe fn match_header_value_char_32_avx(buf: &[u8]) -> usize {

Check warning on line 94 in src/simd/avx2.rs

View workflow job for this annotation

GitHub Actions / check x86

function is never used: `match_header_value_char_32_avx`
debug_assert!(buf.len() >= 32);

/*
#[cfg(target_arch = "x86")]
use core::arch::x86::*;
#[cfg(target_arch = "x86_64")]
*/
use core::arch::x86_64::*;

let ptr = buf.as_ptr();
Expand Down

0 comments on commit 10942b3

Please sign in to comment.