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

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

Build:
Build:
LAST BUILD BRANCH: fix/issue-2113-followups
DEFAULT BRANCH: master
Ran 23 Oct 2026 04:18PM UTC
Jobs 1
Files 761
Run time 2min
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

23 Oct 2026 03:58PM UTC coverage: 88.072% (+0.03%) from 88.047%
39982910469

push

github

web-flow
perf(efloat): pow(x, n) for integer n by binary powering on limbs with bit_width(n) + 21 guard bits (#1806)

pow(x, int) and pow(x, y) with an integer |y| < 2^53 now try integer_power_limbs first: binary
powering on the significand's 64-bit limbs, each square and product kept to its top w limbs
(keep_top) with its exponent in an int64_t, a limb-level Ziv test (limbs_can_round), one
division for a negative n, and one rounding through assign_rounded_limbs. The error bound is
2 n 2^-(64 w - 1): bit_width(n) + 1 bits, against the 69 guard bits efloat arithmetic carried.
A failed test doubles w, up to three times before the general path, which also keeps every
case the kernel does not take (|n| < 2, powers of 2, n (|scale(x)| + 1) >= 2^60).

mpfr_gap, efloat / MPFR at 128 / 512 / 2048 / 8192 bits:
  pow(b,7)   3.4x 2.8x 1.9x 1.6x  ->  0.7x 1.0x 1.3x 1.5x
  pow(b,-7)  2.6x 2.2x 2.2x 2.1x  ->  0.5x 0.8x 1.6x 1.9x

Results are bit-identical to main, flags and carried precision included, over 1.44 million
old-vs-new results in every mode (n up to 2^31, negative n, exact powers, x next to 1, powers
next to the range's ends, x that carries no precision). mpfr_check reports 0 wrong for pow and
powi up to 8192 bits.

Tests: pow.cpp gains VerifyIntegerPowerRounding (random P-bit x at 32 to 2048 bits against x^n
formed exactly, negative n, x = 1 + 2^-j + 2^-(P-2) forcing a widening) and
VerifyIntegerPowerEdges (an argument found by search whose first try rounds wrong without Ziv's
test, powers past the exponent's range, a y wider than x). A mutation run catches 14 of 18; the
other four are equivalent or unreachable.

Resolves #1804

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

91 of 92 new or added lines in 1 file covered. (98.91%)

2 existing lines in 2 files now uncovered.

54011 of 61326 relevant lines covered (88.07%)

9562402.35 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
95.49
4.04% include/sw/universal/number/efloat/math/pow.hpp

Coverage Regressions

Lines Coverage ∆ File
1
97.04
0.0% include/sw/universal/number/cfloat/cfloat_impl.hpp
1
95.49
4.04% include/sw/universal/number/efloat/math/pow.hpp
Jobs
ID Job ID Ran Files Coverage
1 39982910469.1 23 Oct 2026 04:18PM UTC 761
88.07
GitHub Action Run
Source Files on build 39982910469
  • Tree
  • List 761
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39982910469
  • 5faaa60b on github
  • Prev Build on main (#39963764144)
  • Next Build on main (#39996255834)
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