High performance correctly rounded math libraries for 32-bit floating point representations
Jay P. Lim, Santosh Nagarakatte
Abstract
This paper proposes a set of techniques to develop correctly rounded math libraries for 32-bit float and posit types. It enhances our RLIBM approach that frames the problem of generating correctly rounded libraries as a linear programming problem in the context of 16-bit types to scale to 32-bit types. Specifically, this paper proposes new algorithms to (1) generate polynomials that produce correctly rounded outputs for all inputs using counterexample guided polynomial generation, (2) generate efficient piecewise polynomials with bit-pattern based domain splitting, and (3) deduce the amount of freedom available to produce correct results when range reduction involves multiple elementary functions. The resultant math library for the 32-bit float type is faster than state-of-the-art math libraries while producing the correct output for all inputs. We have also developed a set of correctly rounded elementary functions for 32-bit posits.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
8 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Progressive polynomial approximations for fast correctly rounded math libraries cites One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modes
- Progressive polynomial approximations for fast correctly rounded math libraries cites An approach to generate correctly rounded math libraries for new floating point variants
- Parallel shadow execution to accelerate the debugging of numerical errors cites An approach to generate correctly rounded math libraries for new floating point variants
- Parallel shadow execution to accelerate the debugging of numerical errors cites Detecting floating-point errors via atomic conditions
- Parallel shadow execution to accelerate the debugging of numerical errors cites Debugging and detecting numerical errors in computation with posits
- One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modes cites An approach to generate correctly rounded math libraries for new floating point variants
- One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modes cites Detecting floating-point errors via atomic conditions
- An approach to generate correctly rounded math libraries for new floating point variants cites Detecting floating-point errors via atomic conditions
- An approach to generate correctly rounded math libraries for new floating point variants cites Debugging and detecting numerical errors in computation with posits
- Maximum Consensus Floating Point Solutions for Infeasible Low-Dimensional Linear Programs with Convex Hull as the Intermediate Representation cites Progressive polynomial approximations for fast correctly rounded math libraries
- Maximum Consensus Floating Point Solutions for Infeasible Low-Dimensional Linear Programs with Convex Hull as the Intermediate Representation cites One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modes
- Maximum Consensus Floating Point Solutions for Infeasible Low-Dimensional Linear Programs with Convex Hull as the Intermediate Representation cites An approach to generate correctly rounded math libraries for new floating point variants
- Fast shadow execution for debugging numerical errors using error free transformations cites Progressive polynomial approximations for fast correctly rounded math libraries
- Fast shadow execution for debugging numerical errors using error free transformations cites Parallel shadow execution to accelerate the debugging of numerical errors
- Fast shadow execution for debugging numerical errors using error free transformations cites One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modes
- Fast shadow execution for debugging numerical errors using error free transformations cites An approach to generate correctly rounded math libraries for new floating point variants
- Fast shadow execution for debugging numerical errors using error free transformations cites Detecting floating-point errors via atomic conditions
- Fast shadow execution for debugging numerical errors using error free transformations cites Debugging and detecting numerical errors in computation with posits
Cited by top-tier papers8
- Parallel shadow execution to accelerate the debugging of numerical errorsSangeeta Chowdhary, Santosh NagarakatteFSE 2021 · 21 citations
- One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modesJay P. Lim, Santosh NagarakattePOPL 2022 · 15 citations
- Fast shadow execution for debugging numerical errors using error free transformationsSangeeta Chowdhary, Santosh NagarakatteOOPSLA 2022 · 13 citations
- Progressive polynomial approximations for fast correctly rounded math librariesMridul Aanjaneya, Jay P. Lim, Santosh NagarakattePLDI 2022 · 9 citations
- Maximum Consensus Floating Point Solutions for Infeasible Low-Dimensional Linear Programs with Convex Hull as the Intermediate RepresentationMridul Aanjaneya, Santosh NagarakattePLDI 2024 · 1 citation
Builds on3
- Detecting floating-point errors via atomic conditionsDaming Zou, Muhan Zeng, Yingfei Xiong, Zhoulai Fu et al.POPL 2020 · 45 citations
- Debugging and detecting numerical errors in computation with positsSangeeta Chowdhary, Jay P. Lim, Santosh NagarakattePLDI 2020 · 26 citations
- An approach to generate correctly rounded math libraries for new floating point variantsJay P. Lim, Mridul Aanjaneya, John L. Gustafson, Santosh NagarakattePOPL 2021 · 21 citations
Related papers
- Correctly Rounded Math Libraries without Worrying about the Application's Rounding ModeSehyeok Park, Justin Kim, Santosh NagarakattePLDI 2025 · 1 citation
- High-Performance Branch-Free Algorithms for Extended-Precision Floating-Point ArithmeticDavid Kai Zhang, Alex AikenSC 2025 · 3 citations
- Implementation and Synthesis of Math Library FunctionsIan Briggs, Yash Lad, Pavel PanchekhaPOPL 2024 · 7 citations
- FPVM: Towards a Floating Point Virtual MachinePeter A. Dinda, Nick Wanninger, Jiacheng Ma, Alex Bernat et al.HPDC 2022 · 4 citations
- Polynomial Invariant Generation for Floating-Point ProgramsXuran Cai, Liqian Chen, Hongfei FuCAV 2026
