1 /* 2 This code is from the original reiserfs code, as found in reiserfsprogs 3 and the linux kernel. 4 Copyright (C) 1996-2002 Hans Reiser, see COPYING.NAMESYS for licensing 5 and copyright details. 6 */ 7 8 #ifndef HASHES_H 9 #define HASHES_H 10 11 #if defined(__sparc__) || defined(__sparcv9) 12 # include <inttypes.h> 13 #elif defined(__freebsd__) 14 # include <inttypes.h> 15 #else 16 # include <stdint.h> 17 #endif 18 19 #define GET_HASH_VALUE(offset) ((offset) & 0x7fffff80) 20 21 typedef uint32_t (*reiserfs_hash_func_t)(const signed char *, int); 22 23 extern uint32_t __tea_hash_func(const signed char *name, int len); 24 extern uint32_t __yura_hash_func(const signed char *name, int len); 25 extern uint32_t __r5_hash_func(const signed char *name, int len); 26 27 #endif 28 29