_nx_bits_fast_vs_soft.nx
buildroot/runtime/_nx_bits_fast_vs_soft.nx
about
_nx_bits_fast_vs_soft.nx
Paired correctness oracle: for every input in a curated set,
nx_bits_popcount64 (FAST, intrinsic dispatch) must agree with
nx_bits_popcount64_soft (SWAR fallback). Same for clz32 / ctz32.
Exit code = 0 on agreement; 1..N on first disagreement (encodes
which case mismatched so the bench can decode).
Closes the four-pillar PREVENT pillar: any future codegen drift
between intrinsic and software fallback fires here.
dependencies 2 imports · 0 importers
imports: syscalls.nxnx_bits.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 16 | func main() -> i64 |