code wiki / (root) / _primes_bitpacked_inline.nx

_primes_bitpacked_inline.nx

buildroot/runtime/_primes_bitpacked_inline.nx

2264 B76 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic primes
docsdependenciesstructsconstsfunctions

about

_primes_bitpacked_inline.nx -- bit-packed sieve with MANUALLY inlined bit ops. Same algorithm as _primes_bitpacked.nx, but all bit-get / bit-set calls are inlined into the hot loop -- substrate backend doesn't aggressively inline so we do it by hand.

dependencies 1 imports · 0 importers

syscalls.nx _primes_bitpacked_inline.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

9const SIEVE_SIZE: i64 = 1000000
10const N_PASSES: i64 = 100

functions

12func one_pass(buf: *u8, half: i64, byte_count: i64) -> i64
called by 1: main
64func main() -> i64
calls 1: one_pass