linux/net/ceph/crush/hash.c

// SPDX-License-Identifier: GPL-2.0
#ifdef __KERNEL__
# include <linux/crush/hash.h>
#else
# include "hash.h"
#endif

/*
 * Robert Jenkins' function for mixing 32-bit values
 * https://burtleburtle.net/bob/hash/evahash.html
 * a, b = random bits, c = input and output
 */
#define crush_hashmix(a, b, c)

#define crush_hash_seed

static __u32 crush_hash32_rjenkins1(__u32 a)
{}

static __u32 crush_hash32_rjenkins1_2(__u32 a, __u32 b)
{}

static __u32 crush_hash32_rjenkins1_3(__u32 a, __u32 b, __u32 c)
{}

static __u32 crush_hash32_rjenkins1_4(__u32 a, __u32 b, __u32 c, __u32 d)
{}

static __u32 crush_hash32_rjenkins1_5(__u32 a, __u32 b, __u32 c, __u32 d,
				      __u32 e)
{}


__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)
{}

const char *crush_hash_name(int type)
{}