MCPcopy
hub / github.com/klauspost/compress / HasBMI2

Function HasBMI2

internal/cpuinfo/cpuinfo.go:14–16  ·  view source on GitHub ↗

HasBMI2 checks whether an x86 CPU supports the BMI2 extension.

()

Source from the content-addressed store, hash-verified

12
13// HasBMI2 checks whether an x86 CPU supports the BMI2 extension.
14func HasBMI2() bool {
15 return hasBMI2
16}
17
18// DisableBMI2 will disable BMI2, for testing purposes.
19// Call returned function to restore previous state.

Callers 9

Decompress1XMethod · 0.92
FuzzDecodeAllFunction · 0.92
FuzzDecAllNoBMI2Function · 0.92
FuzzNoBMI2DecFunction · 0.92
decodeAsmFunction · 0.92
decodeSyncAsmFunction · 0.92
HasBMIFunction · 0.85

Calls

no outgoing calls

Tested by 5

FuzzDecodeAllFunction · 0.74
FuzzDecAllNoBMI2Function · 0.74
FuzzNoBMI2DecFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…