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

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

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 23 Oct 2026 09:30PM UTC
Jobs 1
Files 761
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

23 Oct 2026 09:13PM UTC coverage: 88.082% (+0.009%) from 88.073%
40025158222

push

github

web-flow
perf(efloat): sqrt without the remainder except next to a rounding boundary, and a limb-level wrapper (#1812)

* perf(efloat): sqrt without the remainder except next to a rounding boundary, and a limb-level wrapper

efloat_mpn::sqrt_approx stops dc_sqrtrem's top level after the root: the square Q^2 and the
one correction it decides are skipped, and the top division is efloat_mpn::div_appr, GMP's
divappr: the high half of the quotient exact, the low half on the divisor's top limbs without
its correcting product, each level adding at most 2 to the quotient's excess (divappr_n_error).
The root is the exact floor or above it by at most sqrt_approx_error(n), 6 at 8192 bits,
against at least 30 bits past the precision. Ziv's test on the limbs decides; where it fails,
the exact sqrtrem and its remainder do, which keeps every exact square exact.

sqrt_limbs reads the operand's limbs in place and rounds once through assign_rounded_limbs;
load_shifted reads packed 64-bit words and shifts once. The root is sized from the precision it
rounds at, whole 32-bit limbs (a sqrt_to request of 33 bits got a 64-bit root without a guard
bit; sqrt itself always rounds at a multiple of 32, so its results do not change). hypot takes
its root the same way.

mpfr_gap, efloat / MPFR at 128 / 512 / 2048 / 8192 bits:
  sqrt   2.2x 2.0x 2.3x 2.0x  ->  1.0x 1.0x 1.2x 1.2x
  hypot  0.6x 0.8x 1.4x 1.5x  ->  0.6x 0.8x 1.2x 1.3x
and asin, acos, atan, atan2 5-14% faster through their roots.

Results are bit-identical to main, flags and carried precision included: 920,000 function
results across the families that take roots, 512,000 sqrt and hypot results, 240,000 fma and
hypot results and 80,000 cube roots, in every mode. mpfr_check reports 0 wrong for every
function up to 8192 bits.

Tests: limb_kernels gains VerifyApproximateKernels (div_appr's and sqrt_approx's bounds against
div_qr and sqrtrem, across the thresholds, all-ones operands and all-ones quotients, which the
low-half clamp ... (continued)

87 of 87 new or added lines in 3 files covered. (100.0%)

1 existing line in 1 file now uncovered.

54164 of 61493 relevant lines covered (88.08%)

9548163.81 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
98.64
-0.7% include/sw/universal/number/efloat/math/sqrt.hpp
Jobs
ID Job ID Ran Files Coverage
1 40025158222.1 23 Oct 2026 09:30PM UTC 761
88.08
GitHub Action Run
Source Files on build 40025158222
  • Tree
  • List 761
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40025158222
  • 58792de1 on github
  • Prev Build on main (#39996255834)
  • Next Build on main (#40031136734)
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