]> Cypherpunks repositories - gostls13.git/commit
hash/crc32: fix nil Castagnoli table problem
authorRadu Berinde <radu@cockroachlabs.com>
Sun, 28 Aug 2016 15:47:14 +0000 (11:47 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 28 Aug 2016 19:01:07 +0000 (19:01 +0000)
commit8c15a1725147692e1106f2e32fae657e1b7f27aa
treeff5621e8239d1629894680c167b22f724d348198
parent0c6c3d1de7bfe40d3589109bf2adb1726d6caca8
hash/crc32: fix nil Castagnoli table problem

When SSE is available, we don't need the Table. However, it is
returned as a handle by MakeTable. Fix this to always generate
the table.

Further cleanup is discussed in #16909.

Change-Id: Ic05400d68c6b5d25073ebd962000451746137afc
Reviewed-on: https://go-review.googlesource.com/27934
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/hash/crc32/crc32.go
src/hash/crc32/crc32_amd64_test.go
src/hash/crc32/crc32_test.go