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

stillwater-sc / universal / 25990604877
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: fix/issue-1002-ereal-highprec-constants
DEFAULT BRANCH: master
Ran 17 May 2026 12:45PM UTC
Jobs 1
Files 652
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

17 May 2026 12:17PM UTC coverage: 84.033% (+0.01%) from 84.022%
25990604877

push

github

web-flow
feat: exact d2b-based decimal parse via distillation for dd, qd, floatcascade (#851)

* feat(utility, dd, qd, floatcascade): exact d2b-based decimal parse via distillation (Resolves #848)

Replaces the legacy `r *= pown(10, e)` decimal-exponent step in dd::parse,
qd::parse, and floatcascade<N>::parse with an exact route through
decimal_to_binary, distilled into N IEEE-754 doubles forming a canonical
non-overlapping cascade expansion. This closes the residual ULP-level
error the pown path accumulated for large |e|.

New utility (`include/sw/universal/utility/decimal_to_binary.hpp`):
- `distill<N>(result, double[N])`: takes a d2b conversion result and
  produces N doubles in canonical cascade form. Internally:
    * Tracks a SIGNED bigint residual (allows round-up to flip sign,
      with the next component compensating)
    * For each iteration: find MSB, extract top 53 bits with
      round-to-nearest-even (using bigint sticky), convert to double
      via std::ldexp, subtract back exactly from residual
    * |out[i+1]| <= ulp(out[i]) / 2 by construction
- Caller chooses target_mantissa_bits when calling convert() to give
  distill enough explicit bigint precision (53*N + 20 is sufficient).

Migrations:
- dd::parse: digit-accumulate + pown loop -> d2b::convert(payload, 126)
  -> distill<2> -> dd(hi, lo). nan/inf token routing preserved.
- qd::parse: same shape, distill<4> -> qd(x0, x1, x2, x3).
- floatcascade<N>::parse: shared by dd_cascade / td_cascade / qd_cascade.
  d2b::convert(payload, 53*N + 20) -> distill<N> -> assign back to *this.

Tests:
- New `static/utility/test_distill.cpp` exercises the distill helper
  directly: exact-in-double inputs produce single component + zeros,
  0.1 and pi cascades, canonical-cascade invariant over many inputs,
  stod oracle agreement for the hi component.
- dd/qd/cascade existing string_parse tests still pass.
- New large-|e| test group in dd/conversion/string_parse.cpp verifies
  the hi component bit-exactly m... (continued)

82 of 89 new or added lines in 4 files covered. (92.13%)

1 existing line in 1 file now uncovered.

46450 of 55276 relevant lines covered (84.03%)

6457238.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
95.14
-4.86% include/sw/universal/utility/decimal_to_binary.hpp

Coverage Regressions

Lines Coverage ∆ File
1
81.25
0.45% include/sw/universal/number/posit1/specialized/posit_16_1.hpp
Jobs
ID Job ID Ran Files Coverage
1 25990604877.1 17 May 2026 12:45PM UTC 652
84.03
GitHub Action Run
Source Files on build 25990604877
  • Tree
  • List 652
  • Changed 7
  • Source Changed 4
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25990604877
  • 54e55475 on github
  • Prev Build on main (#25988762611)
  • Next Build on main (#25994639561)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc