mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-25 14:12:13 +00:00
41 lines
1.6 KiB
C
41 lines
1.6 KiB
C
/*
|
|
This File is copied from
|
|
|
|
http://www.oreilly.com/catalog/masteralgoc/index.html
|
|
Mastering Algorithms with C
|
|
By Kyle Loudon
|
|
ISBN: 1-56592-453-3
|
|
Publishd by O'Reilly
|
|
|
|
We have added our own struct to these function.
|
|
*/
|
|
|
|
/*****************************************************************************
|
|
* *
|
|
* ------------------------------- hashpjw.h ------------------------------ *
|
|
* *
|
|
*****************************************************************************/
|
|
|
|
#ifndef _COMMON_HASHPJW_H
|
|
#define _COMMON_HASHPJW_H
|
|
|
|
#include <common/config.h>
|
|
|
|
/*****************************************************************************
|
|
* *
|
|
* Define a table size for demonstration purposes only. *
|
|
* *
|
|
*****************************************************************************/
|
|
|
|
#define PRIME_TBLSIZ 1699
|
|
|
|
/*****************************************************************************
|
|
* *
|
|
* --------------------------- Public Interface --------------------------- *
|
|
* *
|
|
*****************************************************************************/
|
|
|
|
int hashpjw(const void *key);
|
|
|
|
#endif /* _COMMON_HASHPJW_H */
|