code wiki / (root) / nx_fidelity.nx

nx_fidelity.nx

buildroot/runtime/nx_fidelity.nx

3050 B85 linesdepth 0pulls 0 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

dependencies 0 imports · 1 importers

nx_fidelity.nx nx_fidelity_gate.nx

imports: none

imported by: nx_fidelity_gate.nx

structs

none

consts

1const FID_MAGIC_131072: i64 = 131072
2const FID_MAGIC_65536: i64 = 65536
3const FID_MAGIC_32768: i64 = 32768
21const FID_LOG10_K: i64 = 197336 // 10/log2(10) = 3.0103 in Q16.16
22const FID_CAP_DDB: i64 = 990 // 99.0 dB cap (deci-dB) for near-zero error

functions

25func _fid_log2_q16(x: i64) -> i64
called by 1: nx_segsnr
43func _fid_i16(p: *u8, i: i64) -> i64
called by 1: nx_segsnr
51func nx_segsnr(ref: *u8, test: *u8, n: i64, frame: i64) -> i64
called by 1: main calls 2: _fid_i16_fid_log2_q16