code wiki / (root) / _primes_drag.nx

_primes_drag.nx

buildroot/runtime/_primes_drag.nx

1640 B61 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic primes
docsdependenciesstructsconstsfunctions

about

_primes_drag.nx -- multi-pass sieve for drag-race timing. Runs N passes internally; harness divides wall-clock by N to get per-pass cost, then computes passes/sec for the 5-second window.

dependencies 1 imports · 0 importers

syscalls.nx _primes_drag.nx

imports: syscalls.nx

imported by: nobody (leaf or entry point)

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

main one_pass

structs

none

consts

7const SIEVE_SIZE: i64 = 1000000
8const N_PASSES: i64 = 100 // run 100 passes per ELF invocation

functions

10func one_pass(buf: *u8, half: i64) -> i64
called by 1: main
50func main() -> i64
calls 1: one_pass