]> Cypherpunks repositories - gostls13.git/commit
internal/cpu: use anonymous struct for CPU feature vars
authorTobias Klauser <tklauser@distanz.ch>
Mon, 2 Mar 2020 08:31:44 +0000 (09:31 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Mon, 2 Mar 2020 08:32:38 +0000 (08:32 +0000)
commitb79acf97c79c63779acc77062eef70511a42be9b
treee49f253bc3035276ef92d5b43ee8686032506d72
parentc7a59a99e3fa8d85cac0d638e251438238f18503
internal/cpu: use anonymous struct for CPU feature vars

Like in x/sys/cpu, use anonymous structs to declare the CPU feature vars
instead of defining single-use types. Also, order the vars
alphabetically.

Change-Id: Iedd3ca51916e3cbb852d2aeed18b3a4c6613e778
Reviewed-on: https://go-review.googlesource.com/c/go/+/221757
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Martin Möhrmann <moehrmann@google.com>
src/internal/cpu/cpu.go