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

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

Build:
Build:
LAST BUILD BRANCH: fix/fixpnt-quire-resolve-saturates
DEFAULT BRANCH: master
Ran 05 Nov 2026 08:05PM UTC
Jobs 1
Files 842
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

05 Nov 2026 07:45PM UTC coverage: 88.57% (+0.02%) from 88.555%
42096964004

push

github

web-flow
fix(fixpnt): read decimal text with a fraction and an exponent (#1937)

fixpnt's parse(), and so operator>>, read decimal integers only, so "1.5"
failed with "unable to parse".

The decimal branch now takes digits[.digits][e[+-]digits]:
- The fraction is rounded to nearest, ties to even, from the exact decimal
  value, never through a double: doubling the decimal fraction digits
  yields the binary fraction bits, a round bit and a sticky bit.
- The integer part accumulates in fixpnt arithmetic, so Modulo wraps and
  Saturate clamps, with the sign applied as it goes.
- Saturate handling:
  - Where 10 itself does not fit, a nonzero value times ten clamps.
  - With no integer bits, a fraction magnitude of 1/2 or more clamps.
  - The rounding ulp is applied after the sign, so -8 is maxneg of
    fixpnt<8,4> and -0.999 is -1 in fixpnt<8,7>.
- Leading zeros go in one erase, and the zero padding of a huge exponent
  stops once the value cannot change.

New test static/fixpnt/binary/api/decimal_parse.cpp covers:
- Modulo and Saturate tokens;
- an exact round trip of all 65536 fixpnt<16,8> encodings;
- every midpoint tie, and each midpoint +/- 10^-25, which a parse through
  double gets wrong;
- fixpnt<80,64> at 2^-64;
- operator>>;
- an independent integer oracle over every rbits of an 8-bit fixpnt under
  both policies.

Resolves #1931

BEHAVIOUR-CHANGE: fixpnt parse()/operator>> with Saturate now reads a negative decimal at the bottom of the range as maxneg (-8 in fixpnt<8,4>), not -maxpos
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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

1 existing line in 1 file now uncovered.

57217 of 64601 relevant lines covered (88.57%)

8907590.03 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
93.16
-0.85% include/sw/universal/verification/correctly_rounded_reference.hpp
Jobs
ID Job ID Ran Files Coverage
1 42096964004.1 05 Nov 2026 08:05PM UTC 842
88.57
GitHub Action Run
Source Files on build 42096964004
  • Tree
  • List 842
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42096964004
  • 480676fc on github
  • Prev Build on main (#42088259479)
  • Next Build on main (#42103547817)
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