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

Function HasBMI

internal/cpuinfo/cpuinfo.go:29–31  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

27
28// HasBMI checks whether an x86 CPU supports both BMI1 and BMI2 extensions.
29func HasBMI() bool {
30 return HasBMI1() && HasBMI2()
31}
32
33var hasBMI1 bool
34var hasBMI2 bool

Callers

nothing calls this directly

Calls 2

HasBMI1Function · 0.85
HasBMI2Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…