Consistent with similar change of style in the crypto repository:
http://golang.org/cl/43511
Change-Id: Ib158c52a2649dcbbe9eb92f2bdb9d289e0dcc7bf
Reviewed-on: https://go-review.googlesource.com/53474
Reviewed-by: Han-Wen Nienhuys <hanwen@google.com>
Reviewed-by: Avelino <t@avelino.xxx>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
func xgetbv() (eax, edx uint32)
func init() {
- maxId, _, _, _ := cpuid(0, 0)
+ maxID, _, _, _ := cpuid(0, 0)
- if maxId < 1 {
+ if maxID < 1 {
return
}
X86.HasAVX = isSet(28, ecx1) && osSupportsAVX
- if maxId < 7 {
+ if maxID < 7 {
return
}