Skip to content

Commit

Permalink
fix signature of AVX stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronO committed Apr 18, 2023
1 parent 5232599 commit 30a143d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simd/avx2.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::iter::Bytes;

#[cfg(target_arch = "x86")]
pub unsafe fn match_uri_vectored(_: &[u8]) -> usize {
pub unsafe fn match_uri_vectored(_: &mut Bytes) {
unreachable!("AVX2 detection should be disabled for x86");
}

Expand Down Expand Up @@ -64,7 +64,7 @@ unsafe fn match_url_char_32_avx(buf: &[u8]) -> usize {
}

#[cfg(target_arch = "x86")]
pub unsafe fn match_header_value_vectored(_: &[u8]) -> usize {
pub unsafe fn match_header_value_vectored(_: &mut Bytes) {
unreachable!("AVX2 detection should be disabled for x86");
}

Expand Down

0 comments on commit 30a143d

Please sign in to comment.