Bug 1933095 - Import the Xsum library. r=dminor,sylvestre,arai

The xsum library allows fast exact summation of double-precision values
using small and large superaccumulators the description of the methods
can be found at "Fast Exact Summation Using Small and Large Superaccumulators",
by Radford M. Neal, available at https://arxiv.org/abs/1505.05571. This
commit imports relevant parts of the code from the xsum lib in order to
implement the Math.sumPrecise proposal (https://tc39.es/proposal-math-sum/)

Differential Revision: https://phabricator.services.mozilla.com/D230053
This commit is contained in:
Debadree Chatterjee
2025-01-15 19:18:59 +00:00
parent 2d5bff93ca
commit a4d3be308c
10 changed files with 1259 additions and 1 deletions

View File

@@ -13,6 +13,9 @@ js/src/irregexp/imported/.*
# Don't want to reformat zydis (third-party library subject to occasional updates).
js/src/zydis/.*
# Don't want to reformat xsum (third-party code subject to occasional updates).
js/src/xsum/.*
# Generated by js/src/util/make_unicode.py
js/src/util/Unicode.cpp
js/src/util/UnicodeNonBMP.h