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

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

Build:
Build:
LAST BUILD BRANCH: fix/issue-2128-lns-correct-rounding
DEFAULT BRANCH: master
Ran 18 Oct 2026 02:05AM UTC
Jobs 1
Files 748
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

18 Oct 2026 01:48AM UTC coverage: 86.877% (+0.04%) from 86.84%
39087829795

push

github

web-flow
refactor(math): multi-double math headers report errors without std::cerr (#1722)

The math headers of dd, qd, dd_cascade, td_cascade and qd_cascade printed
domain errors to std::cerr, so each included <iostream> and any core that
used a math function pulled the stream family in (#1334). They now report
an invalid argument the way the std:: functions do: errno = EDOM and a
quiet NaN, with no message. That covers log/log2/log10/log1p, sqrt,
nroot (even root of a negative, n <= 0), asin and acos. The sqrt headers
also included native/ieee754.hpp, which carries <sstream>, and used none
of it. core + constants + mathlib now has 0 I/O-family headers for all
five types (4 before).

Trigonometric argument reduction. sin, cos, sincos and tan of inf, NaN
or a finite |x| past ~1e100 reached the "cannot reduce" paths, and
sincos (and tan through it) crashed in dd, dd_cascade, td_cascade and
qd_cascade: static_cast<int> of the huge quotient is undefined, and
std::abs(INT_MIN) slipped past the guard into a table index. The quotient
is now tested as a double before the cast. inf gives NaN with EDOM and a
NaN gives NaN, as std::sin. A finite argument too large to reduce gives
a quiet NaN with errno = ERANGE, or throws the new
<type>_trig_argument_too_large under the type's
*_THROW_ARITHMETIC_EXCEPTION.

Cases std defines: atan2(+-0, +0) = +-0, atan2(+-0, -0) = +-pi, and
atan2(-0, x) is signed as y, as std::atan2 (was NaN, and +0/+pi for
y = -0). npwr(0, 0) = 1, as std::pow (was NaN, or a throw of an
exception class that td_cascade, qd_cascade and dd_cascade never
declared, so their throwing configuration did not compile).
td_cascade also gains the negative_sqrt_arg and negative_nroot_arg
exceptions its sqrt.hpp already threw.

The unreferenced dd/ and dd_cascade/ old_logarithm.hpp are deleted.

verification/multidouble_math_errors.hpp checks every case above for
all five types; math/domain_errors.cpp runs it per type, and
math/domain_errors_throw.cpp checks the thro... (continued)

222 of 226 new or added lines in 21 files covered. (98.23%)

202 existing lines in 8 files now uncovered.

50550 of 58186 relevant lines covered (86.88%)

10292923.58 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
49.56
-24.88% include/sw/universal/number/qd_cascade/math/functions/trigonometry.hpp
2
46.05
-19.5% include/sw/universal/number/td_cascade/math/functions/trigonometry.hpp

Coverage Regressions

Lines Coverage ∆ File
94
49.56
-24.88% include/sw/universal/number/qd_cascade/math/functions/trigonometry.hpp
94
46.05
-19.5% include/sw/universal/number/td_cascade/math/functions/trigonometry.hpp
8
96.37
-0.32% include/sw/universal/number/cfloat/cfloat_impl.hpp
2
82.5
1.17% include/sw/universal/number/qd/qd_impl.hpp
1
93.75
-6.25% include/sw/universal/number/dd_cascade/math/functions/pow.hpp
1
93.75
-6.25% include/sw/universal/number/dd/math/functions/pow.hpp
1
93.75
-6.25% include/sw/universal/number/qd_cascade/math/functions/pow.hpp
1
93.75
-6.25% include/sw/universal/number/td_cascade/math/functions/pow.hpp
Jobs
ID Job ID Ran Files Coverage
1 39087829795.1 18 Oct 2026 02:05AM UTC 748
86.88
GitHub Action Run
Source Files on build 39087829795
  • Tree
  • List 748
  • Changed 25
  • Source Changed 18
  • Coverage Changed 25
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39087829795
  • 048b827c on github
  • Prev Build on main (#39084180568)
  • Next Build on main (#39090880833)
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