Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ceph_hash.c File Reference
#include <linux/ceph/types.h>
#include <linux/module.h>

Go to the source code of this file.

Macros

#define mix(a, b, c)
 

Functions

unsigned int ceph_str_hash_rjenkins (const char *str, unsigned int length)
 
unsigned int ceph_str_hash_linux (const char *str, unsigned int length)
 
unsigned int ceph_str_hash (int type, const char *s, unsigned int len)
 
 EXPORT_SYMBOL (ceph_str_hash)
 
const charceph_str_hash_name (int type)
 
 EXPORT_SYMBOL (ceph_str_hash_name)
 

Macro Definition Documentation

#define mix (   a,
  b,
  c 
)
Value:
do { \
a = a - b; a = a - c; a = a ^ (c >> 13); \
b = b - c; b = b - a; b = b ^ (a << 8); \
c = c - a; c = c - b; c = c ^ (b >> 13); \
a = a - b; a = a - c; a = a ^ (c >> 12); \
b = b - c; b = b - a; b = b ^ (a << 16); \
c = c - a; c = c - b; c = c ^ (b >> 5); \
a = a - b; a = a - c; a = a ^ (c >> 3); \
b = b - c; b = b - a; b = b ^ (a << 10); \
c = c - a; c = c - b; c = c ^ (b >> 15); \
} while (0)

Definition at line 10 of file ceph_hash.c.

Function Documentation

unsigned int ceph_str_hash ( int  type,
const char s,
unsigned int  len 
)

Definition at line 97 of file ceph_hash.c.

unsigned int ceph_str_hash_linux ( const char str,
unsigned int  length 
)

Definition at line 84 of file ceph_hash.c.

const char* ceph_str_hash_name ( int  type)

Definition at line 110 of file ceph_hash.c.

unsigned int ceph_str_hash_rjenkins ( const char str,
unsigned int  length 
)

Definition at line 23 of file ceph_hash.c.

EXPORT_SYMBOL ( ceph_str_hash  )
EXPORT_SYMBOL ( ceph_str_hash_name  )