benilla-re systems structs docs

s_tenNegPowers

global · crt

Address
0x8325f0 · 348 bytes, up to 0x83274b
Type
Ld12Real[29]
Meaning
Holds 10^-1 to 10^-4096 in the rows ___multtenpow12 picks by octal digit; nothing writes it
Confidence
verified, proof one
Finding
crt/decimal#powers-of-ten

Finding: Powers of ten in crt: decimal digits

___multtenpow12(x, pow, mult12) multiplies x by 10^pow, a factor per nonzero octal digit of |pow|: digit d of group g, from the low one, is row 7g+d-1 of the table for the sign. The rows are 10^1 to 10^7, then by 8 to 10^56, by 64 to 10^448, by 512 to 10^3584, and 10^4096. A row holds the power's mantissa rounded to nearest at 64 bits and the remainder rounded to a signed 16-bit extension; an extension of 0x8000 or more takes the low dword one lower, so each factor is the power rounded to nearest at 80 bits. mult12 0 clears the extension of x. A power of 0 does nothing; 8192 or more reads past the table.

The derivation is in the doc.