siphash: minor.

This commit is contained in:
Christopher Jeffrey 2016-06-08 13:20:23 -07:00
parent ab94bf07b3
commit 4b1f2e1db0
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -107,7 +107,7 @@ function sum64(a, b) {
}
function rotl64(x, b) {
var hi, lo, h1, l1, h2, l2, c;
var h1, l1, h2, l2, c;
// v1 = x << b
if (b < 32) {
@ -133,11 +133,8 @@ function rotl64(x, b) {
}
// v1 | v2
hi = h1 | h2;
lo = l1 | l2;
x.hi = hi;
x.lo = lo;
x.hi = h1 | h2;
x.lo = l1 | l2;
if (x.hi < 0)
x.hi += 0x100000000;