X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fopr%2Fjhash.h;h=5c6e3ad6c36ebe632b239b9b59913504e90c668c;hp=6e9bc79825c055a11ef4da8828eeb1695f5b83ea;hb=07372cf7e76acf62eb26908977e2682338c85ac1;hpb=dce5e012fedb3efc9e7acd9c443b7ec2caaf47ae diff --git a/src/opr/jhash.h b/src/opr/jhash.h index 6e9bc79..5c6e3ad 100644 --- a/src/opr/jhash.h +++ b/src/opr/jhash.h @@ -103,6 +103,21 @@ opr_jhash_int(afs_uint32 a, afs_uint32 initval) { return c; } +/* and one to do two ints */ + +static_inline afs_uint32 +opr_jhash_int2(afs_uint32 a, afs_uint32 b, afs_uint32 initval) +{ + afs_uint32 c; + + a += 0xdeadbeef + 8 + initval; + b += 0xdeadbeef + 8 + initval; + c = 0xdeadbeef + 8 + initval; + opr_jhash_final(a, b, c); + + return c; +} + static_inline afs_uint32 opr_jhash_opaque(const void *val, size_t length, afs_uint32 initval) {