• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stillwater-sc / universal / 39695261548
89%
master: 84%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 21 Oct 2026 11:56PM UTC
Jobs 1
Files 760
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Oct 2026 11:43PM UTC coverage: 87.931% (+0.06%) from 87.875%
39695261548

push

github

web-flow
fix(efloat): correctly rounded cbrt, hypot and fma; exact fmod and remainder (#1785)

The MPFR check of #1782 found these five wrong in 889 to 2,063 of 3,234 cases each.

- fma: the exact product x y (a + b bits for operands of a and b) plus z, summed exactly
  and rounded once. Before, x * y rounded first and the sum rounded again.
- hypot: both scaled by 2^-scale(max), exact squares, exact sum, one exact root (sqrt_to).
  Before, max sqrt(1 + (min / max)^2) rounded four times.
- exact_sum (math/exponent.hpp) keeps both bounded: when the smaller term lies wholly below
  the larger's last bit at `pad` bits, it adds a same-signed proxy 2^(L-2) instead, which
  rounds alike to any precision up to pad - 2 (and square roots up to (pad - 4) / 2).
- cbrt: Newton from a double seed at a precision that doubles with each step, under Ziv's
  strategy (cbrt_error_bits = 8, measured 40 bits inside). An exact root is a boundary, so
  the first Ziv failure checks for one by cubing; without the check an exact cube takes
  ~130x as long. 2.5-3.3x MPFR's time, was 6-33x.
- fmod, remainder: exact. X = mx 2^d and Y as integers, X mod Y = (mx mod Y)(2^d mod Y) mod Y
  with 2^d mod Y by binary powering, so quotients of 2^(2^40) cost ~40 modular squarings;
  remainder takes x mod 2|y| for the quotient's parity. fmod(x, inf) is now x (was NaN).
- efloat::limb_vector(): the limbs without the copy bits() makes; significant_bits and
  can_round use it.

mpfr_check also gains exact halfway quotients for fmod and remainder.

Verification: mpfr_check full run 0 wrong in every function (the five are no longer
`known`); new elastic/efloat/math/exact_functions.cpp checks each against a reference that
shares none of its code (bracketing by exact cubes and squares, exact wide fma, binary long
division, 2^k mod 3 and mod 7 for k to 2^40) and cbrt_working's error bound; main's code fails
3,093 of its level-1 cases. Mutations: 13 of 18 caught; the 5 survivors cannot change a
result (hypo... (continued)

177 of 179 new or added lines in 6 files covered. (98.88%)

1 existing line in 1 file now uncovered.

53250 of 60559 relevant lines covered (87.93%)

9174052.11 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
98.25
-1.75% include/sw/universal/number/efloat/math/sqrt.hpp

Coverage Regressions

Lines Coverage ∆ File
1
92.17
-0.46% include/sw/universal/number/efloat/math/truncate.hpp
Jobs
ID Job ID Ran Files Coverage
1 39695261548.1 21 Oct 2026 11:56PM UTC 760
87.93
GitHub Action Run
Source Files on build 39695261548
  • Tree
  • List 760
  • Changed 8
  • Source Changed 6
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39695261548
  • 8aaf3260 on github
  • Prev Build on main (#39688034097)
  • Next Build on main (#39713268894)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc