diff options
| author | Austin Clements <austin@google.com> | 2025-06-12 15:33:41 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-06-30 11:50:37 -0700 |
| commit | 9eeb1e7a9afb992e899d3917fce92c01b3fa50c1 (patch) | |
| tree | 23750f00dc72bbcb0618d4f17734da0b3e8e469a /src/runtime/cpuflags.go | |
| parent | 426cf36b4d0c672dc88fc5cef9b0d5db0d2f4fe5 (diff) | |
| download | go-9eeb1e7a9afb992e899d3917fce92c01b3fa50c1.tar.xz | |
[dev.simd] runtime: save AVX2 and AVX-512 state on asynchronous preemption
Based on CL 669415 by shaojunyang@google.com.
Change-Id: I574f15c3b18a7179a1573aaf567caf18d8602ef1
Reviewed-on: https://go-review.googlesource.com/c/go/+/680900
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Austin Clements <austin@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/runtime/cpuflags.go')
| -rw-r--r-- | src/runtime/cpuflags.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/cpuflags.go b/src/runtime/cpuflags.go index bd1cb328d3..6452364b68 100644 --- a/src/runtime/cpuflags.go +++ b/src/runtime/cpuflags.go @@ -13,6 +13,7 @@ import ( const ( offsetX86HasAVX = unsafe.Offsetof(cpu.X86.HasAVX) offsetX86HasAVX2 = unsafe.Offsetof(cpu.X86.HasAVX2) + offsetX86HasAVX512 = unsafe.Offsetof(cpu.X86.HasAVX512) // F+CD+BW+DQ+VL offsetX86HasERMS = unsafe.Offsetof(cpu.X86.HasERMS) offsetX86HasRDTSCP = unsafe.Offsetof(cpu.X86.HasRDTSCP) |
