1 // Copyright 2018 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
12 // Offsets into internal/cpu records for use in assembly.
14 offsetX86HasAVX = unsafe.Offsetof(cpu.X86.HasAVX)
15 offsetX86HasAVX2 = unsafe.Offsetof(cpu.X86.HasAVX2)
16 offsetX86HasERMS = unsafe.Offsetof(cpu.X86.HasERMS)
17 offsetX86HasRDTSCP = unsafe.Offsetof(cpu.X86.HasRDTSCP)
19 offsetARMHasIDIVA = unsafe.Offsetof(cpu.ARM.HasIDIVA)
21 offsetMIPS64XHasMSA = unsafe.Offsetof(cpu.MIPS64X.HasMSA)
25 // Set in runtime.cpuinit.
26 // TODO: deprecate these; use internal/cpu directly.