diff options
| author | Martin Möhrmann <moehrmann@google.com> | 2018-08-24 11:02:00 +0200 |
|---|---|---|
| committer | Martin Möhrmann <moehrmann@google.com> | 2018-08-24 18:40:16 +0000 |
| commit | 05c02444eb2d8b8d3ecd949c4308d8e2323ae087 (patch) | |
| tree | e578be0855d35afba810156ae16f37dc656da453 /src/runtime/cpuflags.go | |
| parent | 961eb13b6781907b5bfe4a7b22f68206020c4468 (diff) | |
| download | go-05c02444eb2d8b8d3ecd949c4308d8e2323ae087.tar.xz | |
all: align cpu feature variable offset naming
Add an "offset_" prefix to all cpu feature variable offset constants to
signify that they are not boolean cpu feature variables.
Remove _ from offset constant names.
Change-Id: I6e22a79ebcbe6e2ae54c4ac8764f9260bb3223ff
Reviewed-on: https://go-review.googlesource.com/131215
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/cpuflags.go')
| -rw-r--r-- | src/runtime/cpuflags.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/cpuflags.go b/src/runtime/cpuflags.go index 050168c2d7..b65523766a 100644 --- a/src/runtime/cpuflags.go +++ b/src/runtime/cpuflags.go @@ -11,9 +11,9 @@ import ( // Offsets into internal/cpu records for use in assembly. const ( - offset_x86_HasAVX2 = unsafe.Offsetof(cpu.X86.HasAVX2) - offset_x86_HasERMS = unsafe.Offsetof(cpu.X86.HasERMS) - offset_x86_HasSSE2 = unsafe.Offsetof(cpu.X86.HasSSE2) + offsetX86HasAVX2 = unsafe.Offsetof(cpu.X86.HasAVX2) + offsetX86HasERMS = unsafe.Offsetof(cpu.X86.HasERMS) + offsetX86HasSSE2 = unsafe.Offsetof(cpu.X86.HasSSE2) - offset_arm_HasIDIVA = unsafe.Offsetof(cpu.ARM.HasIDIVA) + offsetARMHasIDIVA = unsafe.Offsetof(cpu.ARM.HasIDIVA) ) |
