Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (24 sloc) 602 Bytes
/*
* Author: Oleg Grenrus <oleg.grenrus@dynamoid.com>
*/
#ifndef HASH_FUNCTION_H
#define HASH_FUNCTION_H
#ifdef PHP_WIN32
# include "ig_win32.h"
#else
# include <stdint.h> /* defines uint32_t etc */
#endif
/**
* Hash function
*
* At this moment lookup3 by Bob Jerkins
*
* @param key key
* @param length key length
* @param initval hash init val
* @return hash value of key
* @see http://burtleburtle.net/bob/hash/index.html
* @author Bob Jerkins <bob_jenkins@burtleburtle.net>
*/
uint32_t hash_function(const void *key, size_t length, uint32_t initval);
#endif /* HASH_FUNCTION_H */