RLIBM-32: High Performance Correctly Rounded Math Libraries for 32-bit Floating Point Representations

Jay P. Lim, Santosh Nagarakatte
4/8/2021
cs.MS

Official code: rutgers-apl/rlibm-32 (60 stars, C, MIT, last commit 2021-09-16).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

RLibm for 32-bit representations (float and posit32)

604C, AssemblyMar 28, 20215 years agoMIT

Similar Papers

Cite this paper

@article{lim2021rlibm,
  title  = {RLIBM-32: High Performance Correctly Rounded Math Libraries for 32-bit Floating Point Representations},
  author = {Jay P. Lim and Santosh Nagarakatte},
  year   = {2021},
  eprint = {2104.04043},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.04043}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.04043.svg)](https://codeofpaper.com/paper/2104.04043)

Discussion