Annotation of embedaddon/coova-chilli/src/lookup.h, revision 1.1.1.1
1.1 misho 1: /*
2: *
3: * Hash lookup function.
4: * Copyright (C) 2003, 2004 Mondru AB.
5: * Copyright (c) 2006-2007 David Bird <david@coova.com>
6: *
7: * The contents of this file may be used under the terms of the GNU
8: * General Public License Version 2, provided that the above copyright
9: * notice and this permission notice is included in all copies or
10: * substantial portions of the software.
11: *
12: */
13:
14: /**
15: * lookup()
16: * Generates a 32 bit hash.
17: * Based on public domain code by Bob Jenkins
18: * It should be one of the best hash functions around in terms of both
19: * statistical properties and speed. It is NOT recommended for cryptographic
20: * purposes.
21: **/
22:
23: #ifndef _LOOKUP_H
24: #define _LOOKUP_H
25:
26: uint32_t lookup(uint8_t *k, size_t length, uint32_t level);
27:
28: #endif /* !_LOOKUP_H */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>