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

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

Build:
Build:
LAST BUILD BRANCH: fix/fixpnt-quire-resolve-saturates
DEFAULT BRANCH: master
Ran 09 Nov 2026 06:11AM UTC
Jobs 1
Files 873
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

09 Nov 2026 05:46AM UTC coverage: 88.926% (+0.03%) from 88.892%
42569178976

push

github

web-flow
fix(ereal): Payne-Hanek reduction for sin/cos/tan, and erf/erfc/tgamma/lgamma in ereal arithmetic (#2027)

sin, cos and tan reduced x by subtracting n 2 pi with the configuration's own
pi, losing about log2|x| bits: ereal<4> sin(1e200) was -0.3737 for -0.6440.
erf, erfc, tgamma and lgamma were double stubs, 53 bits at every configuration.

- payne_hanek.hpp: each limb S 2^e contributes S 2^e / (2 pi) mod 1, summed
  exactly in einteger from bits of 1/(2 pi) computed by Machin's formula, once
  per configuration and sized to the limb type's exponent range (about 1500
  bits for double limbs, 17000 for an 80/128-bit long double).
- error_and_gamma.hpp:
  - erf: the positive-term series with exp(-x^2) scaled by 2^n, and 1 - erfc
    where erfc is below the precision or the series would leave the limb range.
  - erfc: the asymptotic series, 1 - erf in a configuration twice as wide, or
    Lentz's continued fraction.
  - lgamma: Stirling's series shifted up, coefficients from exact tangent
    numbers kept as (mantissa, exponent), and the reflection formula below 0.
  - tgamma: exact factorials, tgamma(x + 1) / x on (0, 1), else +/-exp(lgamma).
  - C99 Annex F special values throughout.
- Measured against mpmath: trig 275-511 bits at ereal<4>/<8> to 1e300, 99-119
  at float limbs, 332 at long double 2^16000; erf/erfc/gamma 255-441 (ereal<4>),
  468-883 (ereal<8>), 99-109 (float limbs).
- Tests: new large_arguments.cpp; error_and_gamma.cpp precision checks
  restored (references, identities, range edge). 46 references from
  generate_reference_constants.py --ereal-math.

The complex library half of #2017 is tracked in #2026.

Resolves #2016
Resolves #2017

BEHAVIOUR-CHANGE: ereal sin/cos/tan of large arguments and erf/erfc/tgamma/lgamma now return values correct to the configuration's precision instead of to about 53 bits (and, for sin/cos/tan past about 1e100 at ereal<4>, instead of wrong values)

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

288 of 289 new or added lines in 3 files covered. (99.65%)

7 existing lines in 3 files now uncovered.

60781 of 68350 relevant lines covered (88.93%)

9814884.36 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
99.5
-0.5% include/sw/universal/number/ereal/math/functions/error_and_gamma.hpp

Coverage Regressions

Lines Coverage ∆ File
3
91.45
-2.56% include/sw/universal/verification/correctly_rounded_reference.hpp
2
84.93
-0.3% include/sw/universal/number/qd/qd_impl.hpp
2
34.7
-0.63% include/sw/universal/verification/test_suite_randoms.hpp
Jobs
ID Job ID Ran Files Coverage
1 42569178976.1 09 Nov 2026 06:11AM UTC 873
88.93
GitHub Action Run
Source Files on build 42569178976
  • Tree
  • List 873
  • Changed 7
  • Source Changed 2
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42569178976
  • c6b8065f on github
  • Prev Build on main (#42562415184)
  • Next Build on main (#42637949454)
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