File: utilJenkinsHash.h

package info (click to toggle)
ted 2.16-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 13,944 kB
  • ctags: 20,273
  • sloc: ansic: 167,980; makefile: 12,518; sh: 263
file content (27 lines) | stat: -rw-r--r-- 843 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*

Slightly adapted from Source by Bob Jenkins. The original comments 
of the file have been retained. Some unused code has been removed, 
the code was converted to ANSI C and the type system is adapted to 
that of my software. MdD Jan 2003.

--------------------------------------------------------------------
lookupa.c, by Bob Jenkins, December 1996.  Same as lookup2.c
You may use this code in any way you wish.  It has no warranty.
Source is http://burtleburtle.net/bob/c/lookupa.c
--------------------------------------------------------------------

*/

#   ifndef UTIL_JENKINS_HASH_H
#   define UTIL_JENKINS_HASH_H

extern unsigned long utilJenkinsHash(	const unsigned char *	k,
					int			l,
					unsigned long		lev );

extern void  utilJenkinsHash2(		const unsigned char *	k,
					int			l,
					unsigned long *		state );

#   endif