foundationdb/flow/Hash3.h

22 lines
551 B
C
Raw Normal View History

2017-05-26 04:48:44 +08:00
#ifndef FLOW_HASH3_H
#define FLOW_HASH3_H
#pragma once
#include <stdint.h>
#include <stddef.h>
2017-05-26 04:48:44 +08:00
// Prototypes for Bob Jenkins' "lookup3" hash
// See Hash3.c for detailed documentation
extern "C" {
uint32_t hashlittle(const void* key, size_t length, uint32_t initval);
2017-05-26 04:48:44 +08:00
void hashlittle2(const void* key, /* the key to hash */
size_t length, /* length of the key */
uint32_t* pc, /* IN: primary initval, OUT: primary hash */
uint32_t* pb); /* IN: secondary initval, OUT: secondary hash */
2017-05-26 04:48:44 +08:00
}
2018-02-23 20:50:23 +08:00
#endif