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

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

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 21 Oct 2026 06:04PM 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 05:47PM UTC coverage: 87.818% (+0.04%) from 87.779%
39646982344

push

github

web-flow
fix(efloat): correctly rounded float and double conversion below the smallest normal (#1778)

fix(efloat): correctly rounded float and double conversion below the smallest normal

The conversion to float and double rounded three kinds of tiny value wrongly:

- A value in [2^(E_min-K), 2^(E_min-K+1)), which lies between half the
  smallest subnormal and the smallest subnormal, was treated as below half of
  it, so round-to-nearest returned 0 for it.
- Rounding up from below the smallest subnormal (toward +inf for a positive
  value, toward -inf for a negative one) shifted a 64-bit word by 64. That is
  undefined behaviour, which UBSan reports at efloat_impl.hpp:1608, and on x86
  it returned 0 instead of the smallest subnormal.
- A carry out of a subnormal's significand, as in rounding 2^-1074 (1 + d) up,
  returned the smallest normal 2^-1022 instead of the next subnormal binade.

Probed against MPFR's mpfr_get_d and mpfr_get_flt over 321,600 values, with
scales from 2^-1200 to 2^-1000 (double) and 2^-170 to 2^-110 (float), in all
four rounding modes: 51,409 wrong for double and 9,385 for float before, 0
after. The new regression test checks both formats against a bit-by-bit
reference rounding; main fails 870 of its cases for each format.

BEHAVIOUR-CHANGE: double(x) and float(x) of an efloat x below the smallest normal now round correctly in every mode; before, values between half the smallest subnormal and the smallest subnormal could round to 0, directed rounding up from below the smallest subnormal gave 0, and a carry out of a subnormal gave the smallest normal

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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

1 existing line in 1 file now uncovered.

52804 of 60129 relevant lines covered (87.82%)

9211314.18 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
97.04
0.0% include/sw/universal/number/cfloat/cfloat_impl.hpp
Jobs
ID Job ID Ran Files Coverage
1 39646982344.1 21 Oct 2026 06:04PM UTC 760
87.82
GitHub Action Run
Source Files on build 39646982344
  • Tree
  • List 760
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39646982344
  • b3b42c73 on github
  • Prev Build on main (#39628503859)
  • Next Build on main (#39654630386)
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