diff --git a/src/utils/hash.c b/src/utils/hash.c index 0b45918b..7bf83c9b 100644 --- a/src/utils/hash.c +++ b/src/utils/hash.c @@ -35,11 +35,6 @@ NOINLINE u64 bqn_hashArr(B x, const u64 secret[4]) { // TODO manual separation o return r; } -NOINLINE u64 bqn_hash(B x, const u64 secret[4]) { - if (isArr(x)) return bqn_hashArr(x, secret); - return wyhash64(secret[0], x.u); -} - u64 wy_secret[4]; diff --git a/src/utils/hash.h b/src/utils/hash.h index 4aeb476d..6846b952 100644 --- a/src/utils/hash.h +++ b/src/utils/hash.h @@ -11,7 +11,11 @@ static void bcl(B x, usz ia) { // clean up bitarr tail bits to zero } } -u64 bqn_hash(B x, const u64 secret[4]); // doesn't consume +u64 bqn_hashArr(B x, const u64 secret[4]); +static u64 bqn_hash(B x, const u64 secret[4]) { // doesn't consume + if (isArr(x)) return bqn_hashArr(x, secret); + return wyhash64(secret[0], x.u); +} static u64 bqn_hashP(B x, const u64 secret[4]) { // bqn_hash but never zero u64 r = bqn_hash(x, secret);