cpu

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package cpu is a minimal shim for the GOROOT-private internal/cpu, exposing just the feature flags the vendored crypto/tls reads.

Index

Constants

This section is empty.

Variables

View Source
var ARM64 struct {
	HasAES, HasPMULL bool
} = struct {
	HasAES, HasPMULL bool
}{
	HasAES:   syscpu.ARM64.HasAES,
	HasPMULL: syscpu.ARM64.HasPMULL,
}

ARM64 mirrors the fields crypto/tls reads on arm64.

View Source
var S390X struct {
	HasAES, HasAESCTR, HasGHASH bool
} = struct {
	HasAES, HasAESCTR, HasGHASH bool
}{
	HasAES:    syscpu.S390X.HasAES,
	HasAESCTR: syscpu.S390X.HasAESCTR,
	HasGHASH:  syscpu.S390X.HasGHASH,
}

S390X mirrors the fields crypto/tls reads on s390x.

View Source
var X86 struct {
	HasAES, HasPCLMULQDQ, HasSSE41, HasSSSE3 bool
} = struct {
	HasAES, HasPCLMULQDQ, HasSSE41, HasSSSE3 bool
}{
	HasAES:       syscpu.X86.HasAES,
	HasPCLMULQDQ: syscpu.X86.HasPCLMULQDQ,
	HasSSE41:     syscpu.X86.HasSSE41,
	HasSSSE3:     syscpu.X86.HasSSSE3,
}

X86 mirrors the fields crypto/tls reads on amd64.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL