FastTwoSum revisited
The FastTwoSum algorithm is a classical way to evaluate the rounding error that occurs when adding two numbers in finite precision arithmetic. Starting with Dekker in the early 1970s, numerous floating-point analyses have been made of this algorithm, that are aimed at identifying sufficient conditions for the error to be computed exactly and, otherwise, at quantifying the quality of the error estimate thus produced. In this paper we revisit these two aspects of FastTwoSum. We first provide new, less restrictive conditions for exactness, and show that FastTwoSum performs an error-free transform in more general situations than those found so far in the literature. Second, when exactness cannot be guaranteed we give several error analyses of the output of FastTwoSum and show that the bounds obtained are tight. In particular, this provides further insight into how the algorithm behaves when roundings other than ‘to nearest’ are used, or when the operands are reversed.
Authors
- Paul Zimmermann (ORCID: https://orcid.org/0000-0003-0718-4458)
- Claude-Pierre Jeannerod
Institutions
- Université Claude Bernard Lyon 1 (FR)
- École Normale Supérieure de Lyon (FR)
- Centre National de la Recherche Scientifique (FR)
- Laboratoire Lorrain de Recherche en Informatique et ses Applications (FR)
- Université de Lorraine (FR)
Publication Details
- Published
- 2025-05-04
- DOI
- https://doi.org/10.1109/arith64983.2025.00030
- Citations
- 1
- Primary Topic
- Railway Systems and Energy Efficiency
- Type
- article
- Field-Weighted Citation Impact
- 1.24