A Novel Approach to Generate Correctly Rounded Math Libraries for New Floating Point Representations
Jay P. Lim, Mridul Aanjaneya, John Gustafson, Santosh, Nagarakatte

TL;DR
This paper introduces a new method for generating polynomial approximations that ensure correctly rounded results for elementary functions across various floating-point representations, improving accuracy and efficiency.
Contribution
It presents a linear programming-based approach to generate polynomials that produce correctly rounded results, addressing limitations of existing approximation methods.
Findings
Developed faster, correctly rounded implementations of elementary functions.
Guarantees correctness even with range reduction techniques.
Applicable to multiple new floating-point representations.
Abstract
Given the importance of floating-point~(FP) performance in numerous domains, several new variants of FP and its alternatives have been proposed (e.g., Bfloat16, TensorFloat32, and Posits). These representations do not have correctly rounded math libraries. Further, the use of existing FP libraries for these new representations can produce incorrect results. This paper proposes a novel approach for generating polynomial approximations that can be used to implement correctly rounded math libraries. Existing methods generate polynomials that approximate the real value of an elementary function and produce wrong results due to approximation errors and rounding errors in the implementation. In contrast, our approach generates polynomials that approximate the correctly rounded value of (i.e., the value of rounded to the target representation). It provides more margin to…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNumerical Methods and Algorithms · Advanced Numerical Analysis Techniques · Parallel Computing and Optimization Techniques
