summaryrefslogtreecommitdiffstats
path: root/contrib/go/_std_1.26/src/runtime/secret/export.go
blob: f7d8cd4e2b138ff9b4212db218b491e4993c9894 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2025 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build goexperiment.runtimesecret

package secret

import (
	"internal/cpu"
	"unsafe"
)

// exports for assembly testing functions
const (
	offsetX86HasAVX    = unsafe.Offsetof(cpu.X86.HasAVX)
	offsetX86HasAVX512 = unsafe.Offsetof(cpu.X86.HasAVX512)
)