RLIBM-ALL: A Novel Polynomial Approximation Method to Produce Correctly Rounded Results for Multiple Representations and Rounding Modes
Jay P. Lim, Santosh Nagarakatte

TL;DR
This paper introduces RLIBM-ALL, a polynomial approximation method that ensures correctly rounded floating point results across multiple representations and rounding modes, improving accuracy and efficiency over existing libraries.
Contribution
It presents a novel polynomial approximation technique that guarantees correct rounding for various floating point formats and modes, extending prior work to multiple precisions and configurations.
Findings
First 32-bit float library with correct rounding for all modes
Supports multiple precisions from 10-bit to 32-bit
Faster than mainstream floating point libraries
Abstract
Mainstream math libraries for floating point (FP) do not produce correctly rounded results for all inputs. In contrast, CR-LIBM and RLIBM provide correctly rounded implementations for a specific FP representation with one rounding mode. Using such libraries for a representation with a new rounding mode or with different precision will result in wrong results due to double rounding. This paper proposes a novel method to generate a single polynomial approximation that produces correctly rounded results for all inputs for multiple rounding modes and multiple precision configurations. To generate a correctly rounded library for -bits, our key idea is to generate such a polynomial approximation for a representation with -bits using the \emph{round-to-odd} mode. We prove that the resulting polynomial approximation will produce correctly rounded results for all five rounding modes in…
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.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNumerical Methods and Algorithms · Digital Filter Design and Implementation · Low-power high-performance VLSI design
