code wiki / (root) / nx_q8_0_from_f32_kat.nx

nx_q8_0_from_f32_kat.nx

buildroot/runtime/nx_q8_0_from_f32_kat.nx

1502 B37 linesdepth 5pulls 9 transitivereach 0 importersview sourcekind tooltopic q8
docsdependenciesstructsconstsfunctions

about

nx_q8_0_from_f32_kat.nx -- roundtrip KAT: F32 -> Q8_0 -> F32 within a quant step. Catches f32->f16 / scale / rounding bugs. expect_exit: 0.

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_f32.nx nx_f32_cvt.nx nx_q8_0_from_f32.nx nx_q8_0_to_f32.nx nx_q8_0_from_f32_kat.nx

imports: nx_syscalls.nxnx_f32.nxnx_f32_cvt.nxnx_q8_0_from_f32.nxnx_q8_0_to_f32.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap nx_f32_div nx_f32_classify nx_f32_exp_field nx_f32_mant_field nx_f32_sign nx_f32_mant_field ↻ nx_f32_exp_field ↻ nx_i32_to_f32 nx_q8_0_from_f32 nx_f32_div ↻ nx_f32_to_f16 _q8f_round_i nx_q8_0_to_f32 _nx_q8_0_block_to_f32 nx_le_read_u16 nx_f16_to_f32 nx_le_read_u8

structs

none

consts

none

functions

9func main() -> i64