willy tarreau | 1235015 | 2005-12-18 01:03:27 +0100 | [diff] [blame] | 1 | /* |
| 2 | This File is copied from |
| 3 | |
| 4 | http://www.oreilly.com/catalog/masteralgoc/index.html |
| 5 | Mastering Algorithms with C |
| 6 | By Kyle Loudon |
| 7 | ISBN: 1-56592-453-3 |
| 8 | Publishd by O'Reilly |
| 9 | |
| 10 | We have added our own struct to these function. |
| 11 | */ |
| 12 | |
| 13 | /***************************************************************************** |
| 14 | * * |
| 15 | * ------------------------------- hashpjw.h ------------------------------ * |
| 16 | * * |
| 17 | *****************************************************************************/ |
| 18 | |
Willy Tarreau | 2dd0d47 | 2006-06-29 17:53:05 +0200 | [diff] [blame] | 19 | #ifndef _COMMON_HASHPJW_H |
| 20 | #define _COMMON_HASHPJW_H |
willy tarreau | 1235015 | 2005-12-18 01:03:27 +0100 | [diff] [blame] | 21 | |
Willy Tarreau | e3ba5f0 | 2006-06-29 18:54:54 +0200 | [diff] [blame] | 22 | #include <common/config.h> |
| 23 | |
willy tarreau | 1235015 | 2005-12-18 01:03:27 +0100 | [diff] [blame] | 24 | /***************************************************************************** |
| 25 | * * |
| 26 | * Define a table size for demonstration purposes only. * |
| 27 | * * |
| 28 | *****************************************************************************/ |
| 29 | |
| 30 | #define PRIME_TBLSIZ 1699 |
| 31 | |
| 32 | /***************************************************************************** |
| 33 | * * |
| 34 | * --------------------------- Public Interface --------------------------- * |
| 35 | * * |
| 36 | *****************************************************************************/ |
| 37 | |
| 38 | int hashpjw(const void *key); |
| 39 | |
Willy Tarreau | 2dd0d47 | 2006-06-29 17:53:05 +0200 | [diff] [blame] | 40 | #endif /* _COMMON_HASHPJW_H */ |