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

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

Build:
Build:
LAST BUILD BRANCH: fix/fixpnt-quire-resolve-saturates
DEFAULT BRANCH: master
Ran 05 Nov 2026 07:10PM UTC
Jobs 1
Files 842
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

05 Nov 2026 06:51PM UTC coverage: 88.555% (-0.05%) from 88.604%
42088259479

push

github

web-flow
fix: faithful negates without assigning and carries both operands' errors (#1935)

faithful<Real> holds a value and the error of that value.

- Unary minus was a const member that assigned to the members, so -x did
  not compile. It now returns faithful(-value, -error).
- The compensated operators carry both operands' errors:
  - x += y adds r + eb, where it dropped eb;
  - x -= y adds r - eb, where it added eb;
  - x /= y uses (ea + r - d*eb) / b, where it ignored the divisor's error;
  - *= was already right.
- Every result is renormalized with an exact twoSum, and /= renormalizes
  its divisor. Cancellation used to leave an error as large as the value:
  1 / ((1 + 2^-24) - (1 - 2^-24)) was 0 instead of 2^23 (CodeRabbit).
- high() and low() return the two parts.

New test numeric/faithful/compensated_arithmetic.cpp:
- negation;
- x - y == x + (-y);
- + - * / and the in-place forms against an exact double reference to
  2^-44, with every result canonical;
- 20000 near-cancellations followed by * and /.
Putting back each original body fails it. CI and CI_LITE now build
numeric/faithful.

The remaining stubs (comparisons, abs, ++/--, isinf/isnan, components())
are #1936.

Resolves #1930

BEHAVIOUR-CHANGE: faithful's +=, -=, /= (and binary +, -, /) now carry both operands' errors and renormalize, so their compensation terms change
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

114 of 142 new or added lines in 3 files covered. (80.28%)

4 existing lines in 2 files now uncovered.

57142 of 64527 relevant lines covered (88.56%)

8909959.06 hits per line

Uncovered Changes

Lines Coverage ∆ File
28
76.86
numeric/faithful/compensated_arithmetic.cpp

Coverage Regressions

Lines Coverage ∆ File
2
84.93
-0.3% include/sw/universal/number/qd/qd_impl.hpp
2
34.7
-0.63% include/sw/universal/verification/test_suite_randoms.hpp
Jobs
ID Job ID Ran Files Coverage
1 42088259479.1 05 Nov 2026 07:10PM UTC 842
88.56
GitHub Action Run
Source Files on build 42088259479
  • Tree
  • List 842
  • Changed 6
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42088259479
  • 43a678da on github
  • Prev Build on main (#42085067149)
  • Next Build on main (#42096964004)
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