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

stillwater-sc / universal / 26830371194
85%
master: 84%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 02 Jun 2026 04:15PM UTC
Jobs 1
Files 670
Run time 2min
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

02 Jun 2026 03:33PM UTC coverage: 84.459% (-0.006%) from 84.465%
26830371194

push

github

web-flow
feat(elreal): named constants as lazy ZBCL factories (Phase 7.1, #931) (#1039)

* feat(elreal): named constants as lazy ZBCL factories (Phase 7.1, #931)

Generated (not baked-in) constant factories on the Phase 5/6/7.2 foundation:
- pi      via Machin: 16*atan(1/5) - 4*atan(1/239)
- e       via the exp(1) Taylor series (sum 1/n!)
- ln2     via 2*artanh(1/3); ln10 via 3*ln2 + 2*artanh(1/9)
- log2(10)= ln10 / ln2
- sqrt2/3/5 via Newton-Raphson sqrt (Phase 7.2); phi = (1+sqrt5)/2
- euler_gamma: host-precision seed (no efficient elementary series -- the one
  exception; a high-precision expansion is a follow-up)

detail::odd_power_series implements the shared atan/artanh odd-power series,
clamped to stop a margin above the denormal floor.

Host scope: the series constants (pi/e/ln2/ln10/log2(10)) are tested on
{double, float} -- bfloat16's 8-bit exponent range cannot hold the deep
expansions these series generate. The radicals (sqrt2/3/5, phi) and euler_gamma
stay in range and are tested on {double, float, bfloat16}. On a double host pi
agrees with a 3-limb high-precision reference to > 100 bits (precision well
beyond the host double); full 100-digit reference-string verification is a
follow-up (needs a decimal->dyadic parse).

e_zbcl bounds its factorial loop at FpType's smallest normal so it never feeds a
subnormal term to from_native.

All 28 elreal tests pass on gcc and clang (Release) and with assertions on;
RISC-V cross-compiles clean; ASCII clean.

Relates to #931 (sub-phase 7.1).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(elreal): include constants.hpp in the umbrella header (#931 7.1)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* docs(elreal): correct bfloat16 series-constant rationale (mantissa, not exponent)

The header comment wrongly blamed bfloat16's exponent range; bfloat16 has the
SAME 8-bit exponent range as float. The real reason series constants are scoped
to {double,float} i... (continued)

55 of 55 new or added lines in 1 file covered. (100.0%)

16 existing lines in 3 files now uncovered.

47380 of 56098 relevant lines covered (84.46%)

6039439.58 hits per line

Coverage Regressions

Lines Coverage ∆ File
10
31.43
-3.57% include/sw/universal/verification/test_suite_randoms.hpp
5
50.45
-4.5% include/sw/universal/verification/posit_test_suite_randoms.hpp
1
80.8
0.0% include/sw/universal/number/posit1/specialized/posit_16_1.hpp
Jobs
ID Job ID Ran Files Coverage
1 26830371194.1 02 Jun 2026 04:15PM UTC 670
84.46
GitHub Action Run
Source Files on build 26830371194
  • Tree
  • List 670
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26830371194
  • 4f07d43b on github
  • Prev Build on main (#26796877956)
  • Next Build on main (#26839644275)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc