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

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

Build:
Build:
LAST BUILD BRANCH: fix/fixpnt-quire-resolve-saturates
DEFAULT BRANCH: master
Ran 05 Nov 2026 08:47PM 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 08:27PM UTC coverage: 88.572% (+0.002%) from 88.57%
42103547817

push

github

web-flow
fix(ereal): parse a decimal with a finite binary value exactly (#1938)

parse("1.5") gave 1.5 - 1.2e-260, two limbs, unequal to ereal(1.5). The
parse built 15 and divided by 10, and ereal divides by multiplying with a
Newton reciprocal: 1/10 has no finite binary expansion, so every dyadic
decimal carried a residual.

The parse now cancels the factors of five between the digits and a
negative power of ten first, exactly, in the digit string:
- a trailing 0 drops with a power of ten;
- a trailing 5 divides by five and records a halving.
A dyadic decimal ends as an integer, built exactly, times 2^-halvings.
Other decimals divide by what is left, as before, with unchanged accuracy.

The digit cap now applies after the reduction, so 1 + 2^-150, which has
150 digits, parses as exactly two limbs. When truncation leaves a positive
power of ten, the halvings and the decimal scaling alternate, so the value
stays between 1 and 2^1000. Scaling first overflowed to inf, and halving
first underflowed: ereal<1> returned 0 (both CodeRabbit).

New test elastic/ereal/conversion/exact_parse.cpp, with references exact
by construction:
- 2000 one-limb dyadic values;
- 500 values 1 + m*2^-j, which main fails;
- non-dyadic accuracy, at 2^-431 on main and here;
- (10^k + 1) * 2^-h for ereal<1>, <2>, <4> and <8>.

Resolves #1932

BEHAVIOUR-CHANGE: ereal parse() and operator>> now return the exact value for a decimal with a finite binary expansion (1.5 is one limb equal to ereal(1.5)); other decimals are unchanged in accuracy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

50 of 50 new or added lines in 1 file covered. (100.0%)

5 existing lines in 4 files now uncovered.

57260 of 64648 relevant lines covered (88.57%)

8906028.97 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
34.7
-0.63% include/sw/universal/verification/test_suite_randoms.hpp
1
97.8
-0.06% include/sw/universal/number/cfloat/cfloat_impl.hpp
1
87.99
0.75% include/sw/universal/number/ereal/ereal_impl.hpp
1
93.16
0.0% include/sw/universal/verification/correctly_rounded_reference.hpp
Jobs
ID Job ID Ran Files Coverage
1 42103547817.1 05 Nov 2026 08:47PM UTC 842
88.57
GitHub Action Run
Source Files on build 42103547817
  • Tree
  • List 842
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42103547817
  • 308c0629 on github
  • Prev Build on main (#42096964004)
  • Next Build on main (#42118868265)
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