code wiki / (root) / nx_simd_minmax_test.nx

nx_simd_minmax_test.nx

buildroot/runtime/nx_simd_minmax_test.nx

5829 B146 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind gate/prooftopic simd
docsdependenciesstructsconstsfunctions

about

nx_simd_minmax_test.nx -- i16x16 per-lane and horizontal min/max. 4 ops: vmin / vmax (per-lane) and vreduce_min / vreduce_max (horizontal scalar). Useful for: argmax-class ML reductions, audio peak detect, image histogram extremes, clamping pipelines.

dependencies 2 imports · 0 importers

nx_kernel_v2.nx nx_log.nx nx_simd_minmax_test.nx

imports: nx_kernel_v2.nxnx_log.nx

imported by: nobody (leaf or entry point)

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

main t1_vmin_lanewise pack4_i16 t2_vmax_lanewise pack4_i16 ↻ t3_vreduce_min pack4_i16 ↻ t4_vreduce_max pack4_i16 ↻ t5_vreduce_min_negative pack4_i16 ↻ t6_vreduce_max_negative pack4_i16 ↻

structs

none

consts

none

functions

10func pack4_i16(a: i64, b: i64, c: i64, d: i64) -> i64
17func t1_vmin_lanewise() -> i64
called by 1: main calls 1: pack4_i16
49func t2_vmax_lanewise() -> i64
called by 1: main calls 1: pack4_i16
75func t3_vreduce_min() -> i64
called by 1: main calls 1: pack4_i16
88func t4_vreduce_max() -> i64
called by 1: main calls 1: pack4_i16
101func t5_vreduce_min_negative() -> i64
called by 1: main calls 1: pack4_i16
115func t6_vreduce_max_negative() -> i64
called by 1: main calls 1: pack4_i16
129func main() -> nx_exit