code wiki / _hdl_build / _pm_log_spec.nx

_pm_log_spec.nx source

↩ module page · 23 lines · 792 B

1// _pm_log_spec.nx -- GENERATED by _f64_log_oracle_gen.py (mpmath @60dps). 2// Data spec for the MATH_KERNEL emitter (LOG_REDUCE shape). DO NOT HAND-EDIT. 3// Layout: c[0]=ONE c[1]=SQRT2_CUT_SIG c[2]=LN2_HI c[3]=LN2_LO; coeffs hi-first at c[4..] 4import "nx_syscalls.nx" 5 6func pm_log_spec_fill(c: *i64) -> i64 { 7 c[0] = 4607182418800017408 8 c[1] = 6369051672525773 9 c[2] = 4604418534062161920 10 c[3] = 4494016781675590265 11 c[4] = 4590930298405593444 12 c[5] = 4591527048666777112 13 c[6] = 4592249430561894184 14 c[7] = 4593141784667627038 15 c[8] = 4593971859893063953 16 c[9] = 4594710912139606804 17 c[10] = 4595718710657619782 18 c[11] = 4597174419628082972 19 c[12] = 4598818590920615058 20 c[13] = 4600877379321698714 21 c[14] = 4604180019048437077 22 return 11 23}