src/runtime/secret/export.go
raw| 1 | // Copyright 2025 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. |
| 4 | |
| 5 | //go:build goexperiment.runtimesecret |
| 6 | |
| 7 | package secret |
| 8 | |
| 9 | import ( |
| 10 | "internal/cpu" |
| 11 | "unsafe" |
| 12 | ) |
| 13 | |
| 14 | // exports for assembly testing functions |
| 15 | const ( |
| 16 | offsetX86HasAVX = unsafe.Offsetof(cpu.X86.HasAVX) |
| 17 | offsetX86HasAVX512 = unsafe.Offsetof(cpu.X86.HasAVX512) |
| 18 | ) |