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

stillwater-sc / universal / 25264031665
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: fix/issue-1002-ereal-highprec-constants
DEFAULT BRANCH: master
Ran 02 May 2026 11:22PM UTC
Jobs 1
Files 648
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

02 May 2026 11:00PM UTC coverage: 84.293% (+0.006%) from 84.287%
25264031665

push

github

web-flow
feat(dbns): full constexpr support across all operators (#795)

* feat(dbns): full constexpr support across all operators

Promotes dbns<nbits, fbbits, BlockType, ...> to fully constexpr across
all user-facing operators. Joins integer (#720), posit (#718),
cfloat (#719), bfloat16 (#725), fixpnt (#721), lns (#776), and
areal (#792) as a fully constexpr-compliant Universal type.

Per Epic #723, the proven playbook (lns PR #776) requires three
mechanical changes plus one structural fix:

dbns_impl.hpp changes:
  - #include <math/constexpr_math.hpp>
  - convert_ieee754: std::log2 -> sw::math::constexpr_math::log2
    with std::is_constant_evaluated dispatch for long double; preserve
    runtime long-double range via std::log2 at runtime, route through
    double at compile time (literal long-double inputs are bounded).
  - convert_ieee754: std::round/std::abs/std::pow -> constexpr
    equivalents (inline ternary for round/abs; cm::exp2/cm::pow inside
    the dead bDebug branch).
  - to_ieee754: ipow() promoted to constexpr (purely arithmetic loop,
    no stdlib calls).
  - operator+= -= *= /= and double-overloads: add CONSTEXPRESSION
    (the +=/-= path goes through double(*this) which is now constexpr).
  - operator++ -- (prefix and postfix): add constexpr.
  - explicit operator int/long/long long/float/double: add CONSTEXPRESSION.
  - explicit operator long double + long double ctor + operator=:
    add CONSTEXPRESSION.
  - dbnsStats event-statistics writes: gated under
    !std::is_constant_evaluated() so static-state mutation only happens
    at runtime (constexpr-safe).
  - assert(best_b >= 0) replaced with comment (assert is not
    constexpr-safe and the invariant is enforced by the search loop).

Pre-existing fix piggybacked: operator<(const dbns&, const dbns&)
contained latent broken code (constructed blockbinary from a raw
BlockType[] array, no such ctor exists). Never instantiated by any
existing test, so the bug went unnoticed. Replaced with a... (continued)

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

45717 of 54236 relevant lines covered (84.29%)

6317463.2 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25264031665.1 02 May 2026 11:22PM UTC 648
84.29
GitHub Action Run
Source Files on build 25264031665
  • Tree
  • List 648
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25264031665
  • 00ed325d on github
  • Prev Build on main (#25087156079)
  • Next Build on main (#25268392612)
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