Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hash.h File Reference

Go to the source code of this file.

Macros

#define CRUSH_HASH_RJENKINS1   0
 
#define CRUSH_HASH_DEFAULT   CRUSH_HASH_RJENKINS1
 

Functions

const charcrush_hash_name (int type)
 
__u32 crush_hash32 (int type, __u32 a)
 
__u32 crush_hash32_2 (int type, __u32 a, __u32 b)
 
__u32 crush_hash32_3 (int type, __u32 a, __u32 b, __u32 c)
 
__u32 crush_hash32_4 (int type, __u32 a, __u32 b, __u32 c, __u32 d)
 
__u32 crush_hash32_5 (int type, __u32 a, __u32 b, __u32 c, __u32 d, __u32 e)
 

Macro Definition Documentation

#define CRUSH_HASH_DEFAULT   CRUSH_HASH_RJENKINS1

Definition at line 6 of file hash.h.

#define CRUSH_HASH_RJENKINS1   0

Definition at line 4 of file hash.h.

Function Documentation

__u32 crush_hash32 ( int  type,
__u32  a 
)

Definition at line 91 of file hash.c.

__u32 crush_hash32_2 ( int  type,
__u32  a,
__u32  b 
)

Definition at line 101 of file hash.c.

__u32 crush_hash32_3 ( int  type,
__u32  a,
__u32  b,
__u32  c 
)

Definition at line 111 of file hash.c.

__u32 crush_hash32_4 ( int  type,
__u32  a,
__u32  b,
__u32  c,
__u32  d 
)

Definition at line 121 of file hash.c.

__u32 crush_hash32_5 ( int  type,
__u32  a,
__u32  b,
__u32  c,
__u32  d,
__u32  e 
)

Definition at line 131 of file hash.c.

const char* crush_hash_name ( int  type)

Definition at line 141 of file hash.c.