code wiki / (root) / nx_xor_all.nx

nx_xor_all.nx

buildroot/runtime/nx_xor_all.nx

899 B29 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind generated fixturetopic xor
docsdependenciesstructsconstsfunctions

about

nx_xor_all.nx -- AUTO-GENERATED from shape `accumulator_over_array`. Shape: read-only fold over a *nx_int array of length nx_idx; returns an accumulated nx_int. 0 = initial accumulator value. acc = acc ^ arr[i] = single-line statement that updates `acc` from arr[i]. genealogy_id: classical_xor_reduce lineage_id: array_fold license: public_domain complexity: O(n) single pass

dependencies 2 imports · 1 importers

nx_syscalls.nx nx_tier.nx nx_xor_all.nx nx_xor_all_test.nx

imports: nx_syscalls.nxnx_tier.nx

imported by: nx_xor_all_test.nx

structs

none

consts

none

functions

21func nx_xor_all(arr: *nx_int, n: nx_idx) -> nx_int
called by 1: main