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

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

Build:
Build:
LAST BUILD BRANCH: fix/ci-pin-mingw-coverage-ubuntu-24.04
DEFAULT BRANCH: master
Ran 16 Nov 2026 12:03AM UTC
Jobs 1
Files 894
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

15 Nov 2026 11:36PM UTC coverage: 89.161% (+0.009%) from 89.152%
43775712941

push

github

web-flow
fix(cfloat): exact fmod and remainder, frac without a cast, fpclassify on the encoding, exp(-inf) = 0, tiny sqrt (#2091)

The engine-independent findings of #2088 (the transcendental engine for
layouts wider than double follows in its own PR):
- fmod never terminated on a saturating cfloat: its doubling waited for an
  overflow to inf, and maxpos + maxpos saturates to maxpos. fmod is an exact
  shift-and-subtract that doubles only below the remainder's binade and
  walks back down by exact halves, O(scale(x) - scale(y)) operations instead
  of a restart per step.
- remainder went through double (cfloat<80,11> remainder(1 + 2^-60, 1) was
  0). It is fmod's remainder adjusted by round-half-even of the quotient.
  Both are computed in a cfloat with one more exponent bit and subnormals,
  where every step is exact, and rounded into the layout once.
- frac cast to long long: undefined past 2^63, for NaN and inf, and
  frac(1e19) was 7.77e17. It is x - trunc(x); frac(NaN) is NaN and
  frac(+-inf) is 0, as modf gives.
- fpclassify went through double: cfloat<128,15>'s minpos was FP_ZERO and
  its maxpos FP_INFINITE. It reads the encoding.
- exp and exp2 of -inf gave minpos. They give +0, and a double underflow
  gives 0 for a layout whose range ends inside double's.
- sqrt took the host path for a value below double's normal range, through
  an inexact subnormal double: cfloat<32,12> sqrt(1.25 * 2^-1073) was 12%
  off. The host path needs a normal double.

Tests: math/exact_fractional
- fmod and remainder over random pairs and the range ends of four 12- to
  16-bit layouts (saturating, max-exponent, no subnormals) against double;
- 64-bit-integer-built values on cfloat<80,11>, <96,15> and <128,15>
  against integer arithmetic;
- fpclassify over every encoding of three layouts;
- sqrt below 2^-1022 on cfloat<32,12>;
- the issue's values.
On main the run does not terminate (the saturating fmod), and every issue
value fails.



Review fixes:
- cfloat_range_fits... (continued)

52 of 53 new or added lines in 5 files covered. (98.11%)

2 existing lines in 1 file now uncovered.

63540 of 71264 relevant lines covered (89.16%)

12669257.34 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
95.24
-4.76% include/sw/universal/number/cfloat/math/functions/exponent.hpp

Coverage Regressions

Lines Coverage ∆ File
2
80.0
-0.69% include/sw/universal/verification/cfloat_test_suite_mathlib.hpp
Jobs
ID Job ID Ran Files Coverage
1 43775712941.1 16 Nov 2026 12:03AM UTC 894
89.16
GitHub Action Run
Source Files on build 43775712941
  • Tree
  • List 894
  • Changed 9
  • Source Changed 5
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43775712941
  • 74b31e0c on github
  • Prev Build on main (#43767352162)
  • Next Build on main (#43785117344)
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