You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
588 B
22 lines
588 B
// Pakage cpu provides APIs to detect CPU features available at runtime. |
|
package cpu |
|
|
|
import ( |
|
"github.com/segmentio/asm/cpu/arm" |
|
"github.com/segmentio/asm/cpu/arm64" |
|
"github.com/segmentio/asm/cpu/x86" |
|
) |
|
|
|
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() |
|
)
|
|
|