From 0f75e40676b0905c8bfc253737390740530714bc Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 30 Jun 2015 12:19:22 -0400 Subject: [PATCH] Tweak --- treetrie.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/treetrie.c b/treetrie.c index 0baefec..650c1c5 100644 --- a/treetrie.c +++ b/treetrie.c @@ -51,8 +51,10 @@ static inline tt_hash_t hash(uint32_t tag, uint64_t x = tag; x ^= index * 11; - x ^= a * 11; - x ^= b * 11; + x *= 11; + x ^= a; + x *= 11; + x ^= b; return x - (x >> 32); }