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

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

Build:
Build:
LAST BUILD BRANCH: fix/issue-2112-dfixpnt
DEFAULT BRANCH: master
Ran 26 Oct 2026 07:51AM UTC
Jobs 1
Files 762
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

26 Oct 2026 07:24AM UTC coverage: 88.241% (-0.009%) from 88.25%
40285649822

push

github

web-flow
feat(efloat): arithmetic, comparisons and sqrt in constant evaluation (#1834)

Phases 1 and 2 of #1819. The integer and dyadic constructors, + - * /,
the compound operators with efloat and integer operands, the comparisons
and sqrt now run in a constant expression, with the run-time results bit
for bit; a value whose limbs fit the inline buffer can be a constexpr
variable.

- limb_kernels: every function inline constexpr. The asm dispatchers,
  udiv_qrnnd's divq, udiv_qr_2by1's empty asm and the addcll/subcll
  builtins take the portable code under std::is_constant_evaluated();
  mul128 does so for MSVC's _umul128. Integer seeds replace the double
  ones there: Newton from 2^32 - 1 in sqrtrem1, a binary search in
  cbrtrem_1, and sqrt_approx4 declines to the exact root.
- scratch_limbs: new/delete in constant evaluation, the block cache at
  run time.
- efloat: rounding_mode() and raise_flags() keep the thread-local mode
  and flags out of constant evaluation (nearest, no flags). enforce_range
  held the mode in a const enum variable, whose initializer the compiler
  tries as a constant first: it read nearest at run time too, which
  numeric_limits.cpp caught; the mode is never const-held now.
- inline is kept beside constexpr: clang's inline hint needs the keyword,
  and without it .text of mpfr_bands shrank 5.5% (sqrt_limbs 6158 to 1796
  bytes). With it, mpfr_bands and mpfr_gap compile to the same
  instructions per function as main under g++ and clang, .text the same
  size to the byte.

Tests: constexpr.cpp rewritten (static_assert on values, a 30-result
chain compiled vs run at 32-2048 bits, sqrt(2) to 1024 bits);
limb_kernels.cpp checks the kernels in constant evaluation. Both pass
with __int128 undefined and with the assembly off; 6 of 7 mutants
caught (the seventh is absorbed by sqrtrem1's correction loop).

Relates to #1819

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

167 of 178 new or added lines in 5 files covered. (93.82%)

55066 of 62404 relevant lines covered (88.24%)

9000126.71 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
98.68
-1.21% include/sw/universal/internal/limbs/limb_kernels.hpp
Jobs
ID Job ID Ran Files Coverage
1 40285649822.1 26 Oct 2026 07:51AM UTC 762
88.24
GitHub Action Run
Source Files on build 40285649822
  • Tree
  • List 762
  • Changed 7
  • Source Changed 5
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40285649822
  • bf386dd1 on github
  • Prev Build on main (#40271934995)
  • Next Build on main (#40325994420)
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