]> Cypherpunks repositories - gostls13.git/commit
crypto/internal/fips140deps/cpu: use const and var blocks
authorJoel Sing <joel@sing.id.au>
Sat, 15 Feb 2025 07:09:59 +0000 (18:09 +1100)
committerGopher Robot <gobot@golang.org>
Tue, 18 Feb 2025 17:03:31 +0000 (09:03 -0800)
commita73c6545d27afaad631ba2f5c593ab3a97d11bdc
tree1198b8a20926fc9b71b3a33f2319f50b63e39a09
parentc47d1aa7878a21e59a48a0a7a23c6bd23b389810
crypto/internal/fips140deps/cpu: use const and var blocks

Rather than repeating ourselves, use a single const block and a single
var block. Also separate architectures for readability.

Change-Id: Iab5bda3514eae0c9b5bb16a99277fd4b95f272aa
Reviewed-on: https://go-review.googlesource.com/c/go/+/649658
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Joel Sing <joel@sing.id.au>
src/crypto/internal/fips140deps/cpu/cpu.go