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

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

Build:
Build:
LAST BUILD BRANCH: fix/fixpnt-quire-resolve-saturates
DEFAULT BRANCH: master
Ran 06 Nov 2026 12:56AM UTC
Jobs 1
Files 843
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

06 Nov 2026 12:37AM UTC coverage: 88.608% (+0.001%) from 88.607%
42138133853

push

github

web-flow
fix(dbns): round native products and quotients to the nearest encoding (#1947)

The native dbns multiply and divide behind NATIVE_DBNS_ARITHMETIC gave wrong
results, and no build or test ever compiled them:
- the multiply projected out-of-range exponent sums back with
  approximations of unity, off by up to 11%;
- the divide subtracted the exponents in uint32_t, so 3 / 1.5 came out 0;
- both carried a static_assert(true) that asserted nothing.

Both now compute the exact pair (a1 +/- a2, b1 +/- b2) in signed 64-bit
arithmetic. assign_pair() stores it as is when it is an encoding, and
otherwise rounds its log2 to the nearest encoding through assign_log2().
That is the nearest-pair search from #1933, moved out of
convert_ieee754(), so conversion and the native operators round by one
rule. The default path is unchanged.

New test static/logarithmic/dbns/arithmetic/native.cpp:
- exhaustive *, *= and / over every pair and sign for dbns<5,2> up to
  <12,5>;
- random operand pairs for every configuration of conversion/nearest.cpp,
  up to 32-bit and 47-bit fields, against an oracle that scans the smaller
  field in full;
- distances measured from exponent differences, with a 1e-12 bound.
main's native path fails all 22 runs.

Resolves #1940

BEHAVIOUR-CHANGE: with NATIVE_DBNS_ARITHMETIC defined, dbns * and / now return the nearest encoding of the exact result instead of a projected or wrapped one
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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

3 existing lines in 2 files now uncovered.

57353 of 64727 relevant lines covered (88.61%)

8914469.64 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
84.93
-0.3% include/sw/universal/number/qd/qd_impl.hpp
1
93.16
-0.85% include/sw/universal/verification/correctly_rounded_reference.hpp
Jobs
ID Job ID Ran Files Coverage
1 42138133853.1 06 Nov 2026 12:56AM UTC 843
88.61
GitHub Action Run
Source Files on build 42138133853
  • Tree
  • List 843
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42138133853
  • 1bfce39a on github
  • Prev Build on main (#42132383872)
  • Next Build on main (#42147205817)
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