code wiki / _hdl_build / _locator_authored.nx

_locator_authored.nx

buildroot/runtime/_hdl_build/_locator_authored.nx

845 B13 linesdepth 5pulls 5 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

AUTHORED BY THE NISHI BUILDER (locator template) -- content-addressed cross-device locator, bits-up

dependencies 1 imports · 0 importers

nx_sha256.nx _locator_authored.nx

imports: nx_sha256.nx

imported by: nobody (leaf or entry point)

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

main locator_make sha256_digest sys_mmap sha256_init sys_mmap ↻ sha256_k sha256_update sha256_compress_ni_blocks blk_set_byte sha256_compress sha256_compress_ni blk_word blk_byte sha256_final blk_set_byte ↻ sha256_compress ↻ locator_resolve sha256_digest ↻

structs

none

consts

none

functions

3func locator_make(text: *u8, n: i64, offset: i64, loc: *u8) -> i64 { sha256_digest(text, n, loc); let p: *i64=((loc as i64)+32) as *i64; p[0]=offset; return 0 }
called by 1: main calls 1: sha256_digest
4func locator_resolve(text: *u8, n: i64, loc: *u8) -> i64 { let id: *u8=sys_mmap(32); sha256_digest(text, n, id); var i: i64=0; while i<32 { if id[i]!=loc[i] { return 0-1 } i=i+1 } let p: *i64=((loc as i64)+32) as *i64; return p[0] }
called by 1: main calls 1: sha256_digest
5func main() -> i64