Skip to content

Commit

Permalink
Remove unecessary prefetching
Browse files Browse the repository at this point in the history
  • Loading branch information
ogxd committed Nov 4, 2023
1 parent 4c55b1d commit 1090de0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions src/gxhash/platform/arm_128.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ pub unsafe fn create_empty() -> State {
vdupq_n_s8(0)
}

#[inline(always)]
pub unsafe fn prefetch(p: *const State) {
//__pld(p as *const i8);
}

#[inline(always)]
pub unsafe fn load_unaligned(p: *const State) -> State {
vld1q_s8(p as *const i8)
Expand Down
5 changes: 0 additions & 5 deletions src/gxhash/platform/x86_128.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ pub unsafe fn create_empty() -> State {
_mm_setzero_si128()
}

#[inline]
pub unsafe fn prefetch(p: *const State) {
_mm_prefetch(p as *const i8, 3);
}

#[inline]
pub unsafe fn load_unaligned(p: *const State) -> State {
_mm_loadu_si128(p)
Expand Down
5 changes: 0 additions & 5 deletions src/gxhash/platform/x86_256.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ pub unsafe fn create_empty() -> State {
_mm256_setzero_si256()
}

#[inline]
pub unsafe fn prefetch(p: *const State) {
_mm_prefetch(p as *const i8, 3);
}

#[inline]
pub unsafe fn load_unaligned(p: *const State) -> State {
_mm256_loadu_si256(p)
Expand Down

0 comments on commit 1090de0

Please sign in to comment.