aboutsummaryrefslogtreecommitdiff
path: root/core/hash/xxhash/common.odin
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2021-09-11 15:39:11 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2021-09-11 15:39:11 +0200
commit72782d903502ebdf3174f918d15d9487575506d7 (patch)
tree8980d060626d836867fd0afde52684b160a5afc8 /core/hash/xxhash/common.odin
parenteaefbc43cb10282039cdb5818ffc9d1bde8d2f43 (diff)
xxhash: Fix test on Linux.
Diffstat (limited to 'core/hash/xxhash/common.odin')
-rw-r--r--core/hash/xxhash/common.odin4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/hash/xxhash/common.odin b/core/hash/xxhash/common.odin
index 4fa0b9d55..537d2d772 100644
--- a/core/hash/xxhash/common.odin
+++ b/core/hash/xxhash/common.odin
@@ -11,7 +11,7 @@ package xxhash
import "core:intrinsics"
import "core:runtime"
-import "core:sys/llvm"
+
mem_copy :: runtime.mem_copy
byte_swap :: intrinsics.byte_swap
@@ -48,6 +48,8 @@ Error :: enum {
XXH_DISABLE_PREFETCH :: #config(XXH_DISABLE_PREFETCH, false)
when !XXH_DISABLE_PREFETCH {
+ import "core:sys/llvm"
+
prefetch_address :: #force_inline proc(address: rawptr) {
llvm.prefetch(address, .Read, .High, .Data)
}