Metraipolis › archive › dc_212e45d2f0a7
A performance enhancement of the Payne-Hanek range reduction algorithm — arXiv:2609.35015
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.35015
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-07T23:25:23.483Z
- SHA-256 of the archived text
35f1a1c128aa4e090a7924bfd158ad0208d965af1d3386c0e1325945bd912275- Stable URL of this page
https://metraipolis.com/documento/dc_212e45d2f0a7
How to cite
A performance enhancement of the Payne-Hanek range reduction algorithm — arXiv:2609.35015 — arXiv (en), https://arxiv.org/abs/2609.35015 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_212e45d2f0a7 (Metraipolis archive dc_212e45d2f0a7, sha256 35f1a1c128aa4e090a7924bfd158ad0208d965af1d3386c0e1325945bd912275)
BibTeX
@misc{dc212e45d2f0a7,
title = {A performance enhancement of the Payne-Hanek range reduction algorithm — arXiv:2609.35015},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.35015},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_212e45d2f0a7; sha256 35f1a1c128aa4e090a7924bfd158ad0208d965af1d3386c0e1325945bd912275},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.35015. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Range reduction plays a crucial role in the accuracy and performance of evaluating trigonometric functions, and is often the primary bottleneck for large floating-point inputs. While fast algorithms such as Cody--Waite work efficiently over narrow intervals, the Payne--Hanek algorithm remains the standard technique for accurate reduction across large floating-point inputs. However, many existing implementations of Payne--Hanek suffer from high latency due to heavy branching, conversion overheads, and the use of multi-word integer arithmetic, which hinders SIMD vectorization. In this paper, we analyze and present a branch-free variation of the Payne--Hanek algorithm using only floating-point arithmetic. Our method operates directly over large double-precision inputs ($|x| \ge 2^{16}$) and is well suited to hardware with FMA instructions. We formulate the precision constraints in terms of a truncation error budget, construct a compact lookup table indexed by the input exponent, and prove that the scaled reduced argument has absolute error below $2^{-110}$ and relative error below $2^{-60}$ for every input, including worst cases. The same routine can serve both as the complete range reduction of a single-stage implementation and as the fast path of a correctly rounded one, achieving higher throughput than existing implementations and lower latency than those returning a double-double reduced argument. The algorithm is currently implemented in the LLVM libc project.
Tema degli esploratori: matematica e informatica teorica (retro-catalogo arXiv: annunci del 2026-09-29 in math.NA).
Categorie arXiv: Mathematical Software (cs.MS) ; Numerical Analysis (math.NA).
Pagina del lavoro: https://arxiv.org/abs/2609.35015 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-07T23:04:09.536Z dalla pagina https://arxiv.org/catchup/math.NA/2026-09-29?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).