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

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

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

14 Nov 2026 06:08AM UTC coverage: 89.102% (+0.04%) from 89.062%
43564838215

push

github

web-flow
fix(quire): operand range from the accumulator's ends, correctly rounded convert_to, numeric_limits (#2064)

* fix(quire): operand range from the accumulator's ends, correctly rounded convert_to, numeric_limits

The quire findings of QA sweep #2039.

- The operand check compared the scale with +-half_range, which is wrong for a
  quire whose radix point is not in the middle: quire<float> accepted 2^295 (its
  top bit is 2^285) and quire<fixpnt<16,2>> 2^-20 (its bit 0 is 2^-4), and both
  came out zero, with the throw guard on as well. The leading bit of the operand
  (a MUL result's carry included) is now checked against lowest_scale and
  highest_scale, the scales of bit 0 and bit qbits - 1; min_scale()/max_scale()
  return them. The integer assignments use the same limit.
- The default build drops an out-of-range operand silently; the comments
  promised a stderr diagnostic the I/O-free core cannot print, and now say so.
- convert_to<float/double> rounds to nearest even, once, from the leading 64
  bits and a sticky bit, through the subnormals, overflowing to +-inf; it
  truncated 53 bits (1 + 2^-53 + 2^-80 was 1, UINT64_MAX 2^64 - 2^11). Integral
  targets truncate toward zero and saturate (convert_to<int>(1e30) was an
  out-of-range cast). Other targets go through a round-to-odd double, so posit
  saturates and a NaN quire converts to NaR (was 0).
- numeric_limits<quire> was never included (is_specialized false); it is now,
  with infinity() and quiet_NaN() the quire's non-finite states, has_infinity
  and has_quiet_NaN true, round_error() 0, digits = qbits, and no constexpr on
  functions that cannot be constant.

Tests (fail on main): static/quire/api/range_and_conversion.cpp (range,
convert_to ties/sticky/extremes/subnormals with uint8/32/64 limbs, integral
saturation, posit target, load_bits, numeric_limits, randomized quire + quire
and < against __int128) and range_exceptions.cpp (the throw guard).
accumulator_protocol.cpp's fixture asserted ... (continued)

78 of 79 new or added lines in 2 files covered. (98.73%)

11 existing lines in 1 file now uncovered.

63096 of 70813 relevant lines covered (89.1%)

11027011.63 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
92.84
6.51% include/sw/universal/number/quire/quire_impl.hpp

Coverage Regressions

Lines Coverage ∆ File
11
92.84
6.51% include/sw/universal/number/quire/quire_impl.hpp
Jobs
ID Job ID Ran Files Coverage
1 43564838215.1 14 Nov 2026 06:46AM UTC 891
89.1
GitHub Action Run
Source Files on build 43564838215
  • Tree
  • List 891
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43564838215
  • a3b2d492 on github
  • Prev Build on main (#43564593067)
  • Next Build on main (#43601176504)
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