From: uz Date: Sat, 20 Aug 2011 21:53:22 +0000 (+0000) Subject: Small change for better hash table distribution. X-Git-Tag: V2.13.3~225 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=85584fb40489dd5e1944c24ccd925a221aea23cd;p=cc65 Small change for better hash table distribution. git-svn-id: svn://svn.cc65.org/cc65/trunk@5237 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ca65/lineinfo.c b/src/ca65/lineinfo.c index 7e9edc60c..f4867fff2 100644 --- a/src/ca65/lineinfo.c +++ b/src/ca65/lineinfo.c @@ -128,7 +128,7 @@ static unsigned HT_GenHash (const void* Key) const LineInfoKey* K = Key; /* Hash over a combination of type, file and line */ - return HashInt ((K->Type << 18) ^ (K->Pos.Name << 14) ^ K->Pos.Line); + return HashInt ((K->Type << 21) ^ (K->Pos.Name << 14) ^ K->Pos.Line); }