Change the token prehash function for better convergence
commit5255fd1f36eece1cbf4000ffc3120dbcb9bf5038
authorH. Peter Anvin <hpa@zytor.com>
Tue, 18 Sep 2007 19:38:07 +0000 (18 12:38 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 18 Sep 2007 19:38:07 +0000 (18 12:38 -0700)
tree1b48eca6bea429f943bd77dcdf91be7e85a013c2
parent3ce3715fba17d5ad54278a42dd0fe75a5b0ebc8d
Change the token prehash function for better convergence

Combining arithmetric (add) and bitwise (xor) mixing seems to give
better result than either.

With the new prehash function, we find a valid hash much quicker.
perllib/phash.ph
pptok.pl
tokhash.pl