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

stillwater-sc / universal / 30333181328
85%
master: 84%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 28 Jul 2026 06:34AM UTC
Jobs 1
Files 639
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

28 Jul 2026 05:56AM UTC coverage: 85.438% (+0.001%) from 85.437%
30333181328

push

github

web-flow
feat(integer): add fma(a,b,c) (#1231)

* feat(integer): add fma(a,b,c)

integer had no fma. Add a free sw::universal::fma(a,b,c) = a*b + c so generic ADL
code (dot products, polynomial evaluation) compiles and runs over integer.

Integer arithmetic is exact, so there is no fused-vs-two-rounding distinction; and
because fixed-size integer arithmetic is modular, wrapping the product before adding
c yields the same value as wrapping once at the end -- (a*b + c) mod 2^nbits --
consistent with integer's own operator* / operator+.

Test (static/integer/binary/math/fma.cpp) validates against an independent int64
modular oracle (exact a*b + c wrapped to nbits): exhaustive (a,b) for integer<8>,
randomized checks up to integer<32>, agreement with the operator form a*b + c,
identities (fma(a,b,0)==a*b, fma(0,b,c)==c, fma(1,b,c)==b+c), and the maxpos^2+maxpos
modular-overflow corner. Oracle uses int64 (not __int128, which MSVC lacks), guarded
by static_assert(nbits <= 32). Green on gcc + clang.

Resolves #1192
Relates to #1189

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* style(integer): wrap fma test registrations to the 120-column limit

CodeRabbit: the ReportTestResult registration lines exceeded the project's
.clang-format ColumnLimit of 120 (136-140 cols). Break each onto two lines.
No behavior change; still green on gcc + clang.

Relates to #1192

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

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

2 existing lines in 1 file now uncovered.

46842 of 54826 relevant lines covered (85.44%)

6785013.88 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
89.78
0.0% include/sw/universal/number/posito/posito_impl.hpp
Jobs
ID Job ID Ran Files Coverage
1 30333181328.1 28 Jul 2026 06:34AM UTC 639
85.44
GitHub Action Run
Source Files on build 30333181328
  • Tree
  • List 639
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30333181328
  • 173d8016 on github
  • Prev Build on main (#30315637420)
  • Next Build on main (#30352786874)
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