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

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

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 14 Mar 2026 10:22PM UTC
Jobs 1
Files 618
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 Mar 2026 09:54PM UTC coverage: 83.993% (+0.006%) from 83.987%
23097151336

push

github

web-flow
fix(posit): correct NaR in to_binary, to_triple, and color_print (#561)

Three related bugs in posit display functions:

1. extract_fields() did not handle the NaR bit pattern (sign bit set,
   all other bits zero). Two's complement of the minimum signed integer
   wraps to itself, causing decode_regime() to produce wrong regime bits.
   Add NaR detection to extract_fields() so it properly sets regime to
   inf (all zeros consuming nbits-1) with empty exponent and fraction.
   This fixes to_binary() and to_triple().

2. color_print() inverted decoded field bits for negative posits trying
   to reconstruct the raw encoding, but bit inversion is not two's
   complement (missing +1), producing wrong bit values. Fix: read the
   decoded field bits directly without inversion, matching to_binary().

3. Exponent and fraction to_string() emitted nibble separator characters
   even when no content bits were output (dashExtent=false with zero
   allocated bits), producing spurious trailing apostrophes for NaR and
   zero in larger posit sizes.

Resolves #559

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

22 of 26 new or added lines in 4 files covered. (84.62%)

42913 of 51091 relevant lines covered (83.99%)

6169856.89 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
95.38
-2.98% include/sw/universal/number/posit/posit_exponent.hpp
2
95.74
-4.26% include/sw/universal/number/posit/posit_fraction.hpp
Jobs
ID Job ID Ran Files Coverage
1 23097151336.1 14 Mar 2026 10:22PM UTC 618
83.99
GitHub Action Run
Source Files on build 23097151336
  • Tree
  • List 618
  • Changed 6
  • Source Changed 4
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23097151336
  • d3015121 on github
  • Prev Build on main (#23094919373)
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