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

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

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 11 Oct 2026 07:48AM UTC
Jobs 1
Files 716
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 07:19AM UTC coverage: 86.564% (+0.1%) from 86.468%
38120995734

push

github

web-flow
feat(bposit): correctly rounded elementary functions, by libm and quad-double (#1669)

Phase 2a of #1653. 25 functions are now correctly rounded:
- sqrt, cbrt, hypot;
- exp, exp2, exp10, expm1, log, log2, log10, log1p, pow;
- sin, cos, tan, asin, acos, atan, atan2;
- sinh, cosh, tanh, asinh, acosh, atanh.

They use Ziv's strategy. libm in double comes first, trusted to 4 ulps. Where that cannot decide, quad-double evaluates from the exact argument, using cancellation-free kernels. A value still ambiguous at 2^-170 is an exact midpoint and rounds to even. atan2 with a tiny y/x that is itself a midpoint is resolved exactly in integers.

sin, cos and tan reduce their argument exactly by Payne-Hanek, from 1280 bits of 2/pi. floor, ceil, trunc, round, fmod and remainder are exact at every width.

Verified for exact equality against an oracle that shares no code with the engine: long double libm, then ereal<8> with exact midpoint comparisons.
- Every encoding of <16,4,2>, <16,5,2> and <16,6,5>, through both the default path and the qd engine alone.
- Sampled at 32 and 64 bits.

Building the oracle exposed ereal bugs, filed as #1668.

Part of #1653.

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

488 of 516 new or added lines in 12 files covered. (94.57%)

48102 of 55568 relevant lines covered (86.56%)

10101275.28 hits per line

Uncovered Changes

Lines Coverage ∆ File
23
81.6
include/sw/universal/number/bposit/math/qd_kernels.hpp
3
88.89
-11.11% include/sw/universal/number/bposit/math/pow.hpp
2
98.28
include/sw/universal/number/bposit/math/correctly_rounded.hpp
Jobs
ID Job ID Ran Files Coverage
1 38120995734.1 11 Oct 2026 07:48AM UTC 716
86.56
GitHub Action Run
Source Files on build 38120995734
  • Tree
  • List 716
  • Changed 16
  • Source Changed 12
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38120995734
  • 9a3234ce on github
  • Prev Build on main (#38115588213)
  • Next Build on main (#38123231121)
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