0001
0002 #ifndef CEPH_CRUSH_HASH_H
0003 #define CEPH_CRUSH_HASH_H
0004
0005 #ifdef __KERNEL__
0006 # include <linux/types.h>
0007 #else
0008 # include "crush_compat.h"
0009 #endif
0010
0011 #define CRUSH_HASH_RJENKINS1 0
0012
0013 #define CRUSH_HASH_DEFAULT CRUSH_HASH_RJENKINS1
0014
0015 extern const char *crush_hash_name(int type);
0016
0017 extern __u32 crush_hash32(int type, __u32 a);
0018 extern __u32 crush_hash32_2(int type, __u32 a, __u32 b);
0019 extern __u32 crush_hash32_3(int type, __u32 a, __u32 b, __u32 c);
0020 extern __u32 crush_hash32_4(int type, __u32 a, __u32 b, __u32 c, __u32 d);
0021 extern __u32 crush_hash32_5(int type, __u32 a, __u32 b, __u32 c, __u32 d,
0022 __u32 e);
0023
0024 #endif