openafs/tests/opr
Simon Wilkinson 20448059f0 opr: Add Bob Jenkins's hash functions
This imports a small subset of Bob Jenkins lookup3.c hash functions
into the opr library. At present we only import the subset of this
that deals with aligned arrays of integers, as this addresses our
immediate need.

It seems likely that if we're interested in a hash function for string
arrays (or other arbitrary data), that more recent functions such like
SpookyHash (from Bob Jenkins, again) or CityHash (from Google) may be
a better solution.

The immediate use case for this is removing the use of the '%' operator
when indexing speed critical hash tables, as well as ensuring fairer
distribution of entries across these tables.

A short set of test cases is also provided

Change-Id: I0ae26382e77da02204a30a95747f7d6de8c4f24a
Reviewed-on: http://gerrit.openafs.org/6095
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
2011-11-21 07:45:14 -08:00
..
.gitignore opr: Add Bob Jenkins's hash functions 2011-11-21 07:45:14 -08:00
jhash-t.c opr: Add Bob Jenkins's hash functions 2011-11-21 07:45:14 -08:00
Makefile.in opr: Add Bob Jenkins's hash functions 2011-11-21 07:45:14 -08:00
queues-t.c opr: queue swap 2011-11-03 13:12:06 -07:00
rbtree-t.c opr: Add a red/black tree implementation 2011-11-12 06:48:17 -08:00