]> Cypherpunks repositories - gostls13.git/commit
runtime: fix float64 hash on 32-bit machine
authorRuss Cox <rsc@golang.org>
Mon, 6 Feb 2012 16:24:34 +0000 (11:24 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 6 Feb 2012 16:24:34 +0000 (11:24 -0500)
commitfacee93a8627881ae39abda13cba115274fe20cf
tree53dfa8529c6f2a7be3c29a6aab01f598d593c528
parent48bd13911de978effd30402253de523b8eb4bb11
runtime: fix float64 hash on 32-bit machine

Multiplying by the low 32 bits was a bad idea
no matter what, but it was a particularly unfortunate
choice because those bits are 0 for small integer values.

Fixes #2883.

R=ken2
CC=golang-dev
https://golang.org/cl/5634047
src/pkg/runtime/alg.c