code wiki / (root) / nx_power_of_2.nx

nx_power_of_2.nx

buildroot/runtime/nx_power_of_2.nx

915 B30 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind generated fixturetopic power
docsdependenciesstructsconstsfunctions

about

nx_power_of_2.nx -- AUTO-GENERATED from shape `scalar_accumulator_n`. Shape: takes a count `n`, runs `n` iterations of STEP, returns the final accumulator value. INIT is the starting accumulator; STEP is the per-iteration update expression (may reference `acc`, `n`, and the loop variable `i`). genealogy_id: synthesized_from_corpus lineage_id: scalar_accumulator_n license: public_domain complexity: O(n)

dependencies 2 imports · 1 importers

nx_syscalls.nx nx_tier.nx nx_power_of_2.nx nx_power_of_2_test.nx

imports: nx_syscalls.nxnx_tier.nx

imported by: nx_power_of_2_test.nx

structs

none

consts

none

functions

22func nx_power_of_2(n: nx_int) -> nx_int
called by 1: main