Skip to content

Commit

Permalink
chore: fix passing wrong prefetch hint (#2358)
Browse files Browse the repository at this point in the history
Signed-off-by: BubbleCal <[email protected]>
  • Loading branch information
BubbleCal authored May 22, 2024
1 parent 56d5505 commit e0ab545
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rust/lance-index/src/vector/sq/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,7 @@ impl<'a> DistCalculator for SQDistCalculator<'a> {
for offset in (0..self.dim).step_by(CACHE_LINE_SIZE) {
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
{
use core::arch::x86_64::_mm_prefetch;
const _MM_HINT_T0: i32 = 1;
use core::arch::x86_64::{_mm_prefetch, _MM_HINT_T0};
_mm_prefetch(base_ptr.add(offset) as *const i8, _MM_HINT_T0);
}
}
Expand Down

0 comments on commit e0ab545

Please sign in to comment.