Skip to content

Commit

Permalink
fix: removal of the complete function
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Aug 4, 2024
1 parent 86ff777 commit 4272db4
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions crates/hashing/src/crc32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,6 @@ impl Crc32 {
Self { value: 0xffffffff }
}

#[cfg(target_arch = "x86_64")]
#[target_feature(enable = "sse4.2")]
unsafe fn update_hw_x86(&mut self, bytes: &[u8]) {
let mut value = self.value;
for &byte in bytes {
value = _mm_crc32_u8(value, byte);
}
self.value = value;
}

#[cfg(target_arch = "aarch64")]
#[target_feature(enable = "crc")]
unsafe fn update_hw_aarch64(&mut self, bytes: &[u8]) {
Expand Down

0 comments on commit 4272db4

Please sign in to comment.