]> Cypherpunks repositories - gostls13.git/commit
all: use internal/cpu feature variables directly
authorMartin Möhrmann <moehrmann@google.com>
Sat, 28 Jul 2018 07:08:09 +0000 (09:08 +0200)
committerMartin Möhrmann <moehrmann@google.com>
Mon, 20 Aug 2018 14:47:07 +0000 (14:47 +0000)
commitcd0e79d9f136088929f3c7aab53998793bf273ba
tree5944c856a238e3066dc4073f86a29338187ff445
parent099498db0e47ba01ec405ca27662d9a87ef921e2
all: use internal/cpu feature variables directly

Avoid using package specific variables when there is a one to one
correspondance to cpu feature support exported by internal/cpu.

This makes it clearer which cpu feature is referenced.
Another advantage is that internal/cpu variables are padded to avoid
false sharing and memory and cache usage is shared by multiple packages.

Change-Id: If18fb448a95207cfa6a3376f3b2ddc4b230dd138
Reviewed-on: https://go-review.googlesource.com/126596
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/sha1/sha1block_arm64.go
src/crypto/sha256/sha256block_arm64.go
src/hash/crc32/crc32_arm64.go