aboutsummaryrefslogtreecommitdiff
path: root/core/hash
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-09-18 12:59:54 +0100
committergingerBill <bill@gingerbill.org>2021-09-18 12:59:54 +0100
commitb427bd8105dea84ada14df6047177e64a242a565 (patch)
treefee8308be2fe02e2742ec52e0ad3f99588e35ebf /core/hash
parent6855538729ea4f859f692715c4c231e4a59ac604 (diff)
Correct `XXH_DISABLE_PREFETCH` usage
Diffstat (limited to 'core/hash')
-rw-r--r--core/hash/xxhash/common.odin4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/hash/xxhash/common.odin b/core/hash/xxhash/common.odin
index d49e9c047..8b34c1e8f 100644
--- a/core/hash/xxhash/common.odin
+++ b/core/hash/xxhash/common.odin
@@ -50,9 +50,7 @@ XXH_DISABLE_PREFETCH :: #config(XXH_DISABLE_PREFETCH, true)
/*
llvm.prefetch fails code generation on Linux.
*/
-when XXH_DISABLE_PREFETCH {
- import "core:sys/llvm"
-
+when !XXH_DISABLE_PREFETCH {
prefetch_address :: #force_inline proc(address: rawptr) {
intrinsics.prefetch_read_data(address, /*high*/3)
}