Algorithmic Details
Deep technical write-ups of selected algorithms used inside Universal. These docs are for readers who want the math, the transfer functions, and the trade-off space rather than the API-level usage.
Available Documents
Section titled “Available Documents”- LNS log-domain add/sub algorithms
– the seven shipped algorithms for evaluating
log2(1 + 2^d)andlog2(1 - 2^d), with transfer-function plots, error envelopes, and a picker decision tree. - Multi-component floating-point arithmetic
– Priest’s error-free transformations, Bailey/Hida’s hand-crafted
fixed-precision
dd/qd, Shewchuk’s adaptive expansions, and how Universal’sfloatcascade<N>building block ties them together. - Multi-limb arithmetic
– how the fixed-size types store integers and significands in blocks, the
32-bit-limb kernels that add, multiply (schoolbook) and divide (Knuth’s
Algorithm D) them under
blocktriple,integerandblockbinary, how those changes were verified bit-identical, and what they gained. - efloat: correctly rounded arithmetic and math library
– how
efloatrounds its arithmetic and math library correctly at any precision (Ziv’s strategy over stated error bounds), the algorithm behind each function, the alternatives tried and dropped, how it is verified against MPFR, measured accuracy and speed, and the open work. - Complex functions: branch cuts, signed zeros and C99 Annex G
– where the cuts of
log,sqrtand the inverse functions lie and why the sign of zero picks the side, the history from Kahan’s 1987 paper to C99 Annex G, the special values, the formulas chosen for accuracy, and howcomplex<T>implements and verifies them in anyT. - CORDIC
– rotation, multiplication and the elementary functions by shift and add:
why CORDIC exists, Walther’s unified iteration and what the
min itsxupdate means for the circular, linear and hyperbolic geometries, convergence, gain and range reduction, when to use it, its history from Volder’s B-58 navigation computer to today’s FPGAs, and Universal’s fixpnt CORDIC engine.
Companion sections
Section titled “Companion sections”- Number Systems – API-level reference for each arithmetic type.
- Design – design rationale and architectural decisions.