nx_power_of_2.nx
buildroot/runtime/nx_power_of_2.nx
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
imports: nx_syscalls.nxnx_tier.nx
imported by: nx_power_of_2_test.nx
structs
| none |
consts
| none |
functions
| 22 | func nx_power_of_2(n: nx_int) -> nx_int called by 1: main |