2017-05-26 04:48:44 +08:00
|
|
|
#ifndef FLOW_HASH3_H
|
|
|
|
#define FLOW_HASH3_H
|
|
|
|
#pragma once
|
|
|
|
|
2018-08-11 05:36:45 +08:00
|
|
|
#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);
|
|
|
|
|
2018-02-23 20:50:23 +08:00
|
|
|
void hashlittle2(
|
2017-05-26 04:48:44 +08:00
|
|
|
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 */
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-02-23 20:50:23 +08:00
|
|
|
#endif
|