opr: Add opr_jhash_int2 function
authorSimon Wilkinson <sxw@your-file-system.com>
Mon, 29 Oct 2012 19:02:03 +0000 (19:02 +0000)
committerDerrick Brashear <shadow@your-file-system.com>
Thu, 1 Nov 2012 18:30:20 +0000 (11:30 -0700)
commit07372cf7e76acf62eb26908977e2682338c85ac1
treea2c54e9060b1cd90054dcaba6dd3f3dc80a8cd51
parentdce5e012fedb3efc9e7acd9c443b7ec2caaf47ae
opr: Add opr_jhash_int2 function

Add a function to jhash that can be used to hash a pair of unsigned
integers (or other stuff that can cast to them) without having to build
up an array.

Provide a couple of tests for the new function

Change-Id: I594848f64316fb459eff565933691f560512ca79
Reviewed-on: http://gerrit.openafs.org/8354
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/opr/jhash.h
tests/opr/jhash-t.c