cpuinfo

package
v0.9.2202 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package cpuinfo gives runtime info about the current CPU.

This is a very limited module meant for use internally in this project. For more versatile solution check https://github.com/klauspost/cpuid.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableBMI2

func DisableBMI2() func()

DisableBMI2 will disable BMI2, for testing purposes. Call returned function to restore previous state.

func HasBMI

func HasBMI() bool

HasBMI checks whether an x86 CPU supports both BMI1 and BMI2 extensions.

func HasBMI1

func HasBMI1() bool

HasBMI1 checks whether an x86 CPU supports the BMI1 extension.

func HasBMI2

func HasBMI2() bool

HasBMI2 checks whether an x86 CPU supports the BMI2 extension.

Types

This section is empty.

Jump to

Keyboard shortcuts

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