Skip to content
DraconiticResearch
Search Sources API
197,787 studies31 sourcesUpdated 46 min ago
PreprintCC BY 4.0HAL

Lord of the Precision, the Two Floats: Double-Word Arithmetic for Complex Numbers

Abstract

Datacenter GPUs increasingly favor low-precision floating-point formats, offering higher throughput than FP64. Double-word (DW) arithmetic represents numbers as unevaluated sums of two floating-point values, providing higher accuracy. We present the first error analysis of complex DW multiplication and division. Both operations reduce to sums of two DW products, combined using one of three DW addition algorithms: accurate, sloppy, or Madd. Normalizing DW products ensures nonoverlapping components, but omitting this step reduces the number of arithmetic operations. We bound the resulting overlap and prove that Madd retains a relative error bound of 3u 2 + O(u 3 ) for overlapping inputs, where u is the unit roundoff. For all variants, we establish relative error bounds of the form (ακ + β)u 2 + O(u 3 ), where κ is the condition number of the sum of products. Our analysis shows that the less expensive sloppy addition suffices. We implement these variants in CompleXDW, an open-source C++ library for CPUs and GPUs. In the high-energy physics code MadGraph7, FP32-based DW arithmetic achieves up to 2.9× and 2.1× higher throughput than FP64 on NVIDIA L40S and AMD Radeon Pro W7900 GPUs, respectively, while losing approximately 1.4 correct significant digits.

Related

  1. A wider state, not wider arithmetic, for single-precision time integration
    Michael F. Barad
    arXivPreprintarXiv licenceFull textNumerical analysis & scientific computingFluid dynamicsarXiv
  2. Statistical Oceanography of Profiling Floats and Surface Drifters
    Mikael Kuusela, Sofia C. Olhede, Adam M. Sykulski
    arXivPreprintarXiv licenceFull textAtmospheric science & meteorologyGeophysics & seismologyarXiv
  3. High precision, fast computation and high accuracy? Linear scaling double hybrid DFT calculations with spin-polarization
    Yao Shen, Zhenling Wang, Tianyi Shi +6
    ChemRxivPreprintCC BYFull textAtomic, molecular & optical physicsChemRxiv
  4. Complex Scalar Dark Matter with a Vector-Like Quark and Lepton: Precision, Flavor, and HL-LHC
    Lipika Kolay, Rusa Mandal, Manimala Mitra +2
    arXivPreprintCC BY 4.0Full textHigh-energy & particle physicsarXiv
  5. The Arithmetic of Spectra: Factorization, Statistics, and Symmetric Functions
    A. Chaudhary
    arXivPreprintCC BY 4.0Full textMathematical physicsStatistical & nonlinear physicsarXiv
BibTeX
@misc{stloukal2026lord,
  title = {{Lord of the Precision, the Two Floats: Double-Word Arithmetic for Complex Numbers}},
  author = {František Stloukal and Fabienne Jézéquel},
  howpublished = {HAL},
  year = {2026},
  month = nov,
  url = {https://hal.science/hal-05854138v1},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - Lord of the Precision, the Two Floats: Double-Word Arithmetic for Complex Numbers
AU  - František Stloukal
AU  - Fabienne Jézéquel
PY  - 2026
DA  - 2026/11/05
PB  - HAL
UR  - https://hal.science/hal-05854138v1
AB  - Datacenter GPUs increasingly favor low-precision floating-point formats, offering higher throughput than FP64. Double-word (DW) arithmetic represents numbers as unevaluated sums of two floating-point values, providing higher accuracy. We present the first error analysis of complex DW multiplication and division. Both operations reduce to sums of two DW products, combined using one of three DW addition algorithms: accurate, sloppy, or Madd. Normalizing DW products ensures nonoverlapping components, but omitting this step reduces the number of arithmetic operations. We bound the resulting overlap and prove that Madd retains a relative error bound of 3u 2 + O(u 3 ) for overlapping inputs, where u is the unit roundoff. For all variants, we establish relative error bounds of the form (ακ + β)u 2 + O(u 3 ), where κ is the condition number of the sum of products. Our analysis shows that the less expensive sloppy addition suffices. We implement these variants in CompleXDW, an open-source C++ library for CPUs and GPUs. In the high-energy physics code MadGraph7, FP32-based DW arithmetic achieves up to 2.9× and 2.1× higher throughput than FP64 on NVIDIA L40S and AMD Radeon Pro W7900 GPUs, respectively, while losing approximately 1.4 correct significant digits.
ER  -