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

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

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 11 Oct 2026 04:13PM UTC
Jobs 1
Files 721
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

11 Oct 2026 03:42PM UTC coverage: 86.613% (-0.04%) from 86.65%
38152437273

push

github

web-flow
feat(math): multi-double hyperbolic, erf, erfc, lgamma and tgamma at full precision (#1674)

dd, dd_cascade, td_cascade and qd_cascade evaluated sinh, cosh, tanh, asinh, acosh, atanh,
erf and erfc in double, worth 53 of their 106 to 212 bits, and had no lgamma or tgamma at
all (#1667). qd had its own versions, but its asinh, acosh and atanh cancel near 0 and 1.

A shared header, number/shared/multidouble_special.hpp, now serves all five types, in each
type's own arithmetic:

- sinh and tanh from expm1 below 1/2; tanh saturates; the inverses in log1p forms
  (asinh(a + a^2 / (1 + sqrt(1 + a^2))), acosh(t + sqrt(t (t + 2))) with t = x - 1,
  atanh(2a / (1 - a)) / 2), log(a) + ln 2 for huge arguments; odd functions at |x|.
- erf, erfc, lgamma and tgamma: qd's algorithms from #1670, made generic, with stopping
  rules scaled to the type's precision.

The constants become plain four-limb double arrays (number/shared/multidouble_special_constants.hpp),
so each type rounds them to its own precision; qd_special_constants.hpp is gone and the
generator (tools/generators/qd_special_gen.py) writes the shared files, including the mpmath
reference vectors (verification/multidouble_special_vectors.hpp).

The new tests also found that every type's log loses bits for huge and tiny arguments: its
Newton step forms exp(-x), which near 1e300 reaches the bottom of double's range and drops
its low limbs (log(1e300) kept 89 bits). log now takes the binary exponent out beyond 2^500,
where k ln 2 dominates and nothing cancels.

Tests (test_suite_multidouble_special.hpp, shared): erf, erfc, lgamma and tgamma against the
mpmath vectors to P - 22 bits (dd reaches 92-104 of 106, td 147-158 of 159, qd and qd_cascade
199-210 of 212), plus identities and special values; the hyperbolic functions against
ereal<8> to P - 12 bits at tiny, moderate and huge arguments and near 1; log across the
exponent range. Every one fails or does not compile on the previous headers. All 118
multi-doub... (continued)

318 of 328 new or added lines in 18 files covered. (96.95%)

35 existing lines in 4 files now uncovered.

48744 of 56278 relevant lines covered (86.61%)

9909754.11 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
90.57
include/sw/universal/verification/test_suite_multidouble_special.hpp

Coverage Regressions

Lines Coverage ∆ File
21
69.44
-4.69% include/sw/universal/number/qd_cascade/qd_cascade_impl.hpp
11
71.43
-2.5% include/sw/universal/number/td_cascade/td_cascade_impl.hpp
2
81.33
-0.06% include/sw/universal/number/qd/qd_impl.hpp
1
90.36
-0.4% include/sw/universal/number/qd/math/functions/trigonometry.hpp
Jobs
ID Job ID Ran Files Coverage
1 38152437273.1 11 Oct 2026 04:13PM UTC 721
86.61
GitHub Action Run
Source Files on build 38152437273
  • Tree
  • List 721
  • Changed 25
  • Source Changed 16
  • Coverage Changed 25
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38152437273
  • bdc5e590 on github
  • Prev Build on main (#38148623918)
  • Next Build on main (#38172781380)
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