code wiki / (root) / nx_cpu_features_test.nx

nx_cpu_features_test.nx

buildroot/runtime/nx_cpu_features_test.nx

778 B21 linesdepth 2pulls 3 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_cpu_features_test.nx -- KAT for the cpuid feature gate. Asserts the results are valid booleans, prints them, and (for the deploy target -- a modern x86 box) requires BMI2 + ADX present. Cross-checked against /proc/cpuinfo. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_cpu_features.nx nx_cpu_features_test.nx

imports: nx_syscalls.nxnx_cpu_features.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_cpu_has_bmi2 nx_cpu_has_adx

structs

none

consts

none

functions

8func main() -> i64