package cpu

import "github.com/segmentio/asm/cpu"

Pakage cpu provides APIs to detect CPU features available at runtime.

Index

Variables

var (
	// X86 is the bitset representing the set of the x86 instruction sets are
	// supported by the CPU.
	X86 = x86.ABI()

	// ARM is the bitset representing which parts of the arm instruction sets
	// are supported by the CPU.
	ARM = arm.ABI()

	// ARM64 is the bitset representing which parts of the arm64 instruction
	// sets are supported by the CPU.
	ARM64 = arm64.ABI()
)

Source Files

cpu.go

Directories

PathSynopsis
cpu/arm
cpu/arm64
cpu/cpuidPackage cpuid provides generic types used to represent CPU features supported by the architecture.
cpu/x86
Version
v1.2.0 (latest)
Published
Apr 27, 2022
Platform
linux/amd64
Imports
3 packages
Last checked
10 hours ago

Tools for package owners.