nx_vecmath_slerp_gate_t181.nx
buildroot/runtime/nx_vecmath_slerp_gate_t181.nx
about
nx_vecmath_slerp_gate_t181.nx -- Tests slerp interpolation of vectors with fixed-point precision and checks for errors.
dependencies 2 imports · 0 importers
imports: nx_vecmath_slerp_candidate_t181.nxnx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 4 | func qp(s:*u8)->i64{var n:i64=0;while s[n]!=(0 as u8){n=n+1};sys_write(1,s,n);return 0} |
| 5 | func qn(v:i64)->i64{let b:*u8=sys_mmap(32);var i:i64=31;var x:i64=v;if x<0{qp("-");x=0-x};if x==0{b[i]=48 as u8;i=i-1};while x>0{b[i]=(48+x%10) as u8;i=i-1;x=x/10};sys_write(1,(b as i64+i+1) as *u8,31-i);sys_munmap(b,32);return 0} |
| 6 | func main()->i64{let a:*i64=sys_mmap(32) as *i64;let b:*i64=sys_mmap(32) as *i64;let out:*i64=sys_mmap(32) as *i64;let scratch:*i64=sys_mmap(96) as *i64;var maxerr:i64=0;var bad:i64=0; |