From 9c257dc268df4b6eb40e4292035c555bf9295fd6 Mon Sep 17 00:00:00 2001 From: Nick Terrell Date: Tue, 4 Apr 2017 15:54:39 -0700 Subject: [PATCH] Fix up xxhash --- contrib/linux-kernel/lib/xxhash.c | 11 ----------- contrib/linux-kernel/lib/xxhash.h | 4 ++-- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/contrib/linux-kernel/lib/xxhash.c b/contrib/linux-kernel/lib/xxhash.c index 05ebedf7..43c2c529 100644 --- a/contrib/linux-kernel/lib/xxhash.c +++ b/contrib/linux-kernel/lib/xxhash.c @@ -81,17 +81,6 @@ static void* XXH_memcpy(void* dest, const void* src, size_t size) { return memcp #define FORCE_INLINE static __always_inline -static U32 XXH_read32(const void* memPtr) -{ - return MEM_read32(memPtr); -} - -static U64 XXH_read64(const void* memPtr) -{ - return MEM_read64(memPtr); -} - - /* **************************************** * Compiler-specific Functions and Macros ******************************************/ diff --git a/contrib/linux-kernel/lib/xxhash.h b/contrib/linux-kernel/lib/xxhash.h index 36d140ec..974a81c4 100644 --- a/contrib/linux-kernel/lib/xxhash.h +++ b/contrib/linux-kernel/lib/xxhash.h @@ -177,8 +177,8 @@ When done, free XXH state space if it was allocated dynamically. /* ************************** * Utils ****************************/ -XXH_PUBLIC_API void XXH32_copyState(XXH32_state_t* restrict dst_state, const XXH32_state_t* restrict src_state); -XXH_PUBLIC_API void XXH64_copyState(XXH64_state_t* restrict dst_state, const XXH64_state_t* restrict src_state); +XXH_PUBLIC_API void XXH32_copyState(XXH32_state_t* dst_state, const XXH32_state_t* src_state); +XXH_PUBLIC_API void XXH64_copyState(XXH64_state_t* dst_state, const XXH64_state_t* src_state); /* **************************