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

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

Build:
Build:
LAST BUILD BRANCH: losborn_bugfix_elreal_subnormal_blocks_aug26
DEFAULT BRANCH: master
Ran 20 Jul 2026 12:53PM UTC
Jobs 1
Files 700
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

20 Jul 2026 12:08PM UTC coverage: 84.759% (-0.02%) from 84.782%
29741065847

push

github

web-flow
feat(ereal): add fdim, modf, rint, nearbyint (parity with efloat) (#1170)

Adds the four <cmath> functions efloat had but ereal lacked, on ereal's own
expansion arithmetic:

- fdim (minmax.hpp): x > y ? x - y : +0; NaN propagates.
- modf (fractional.hpp): returns the fractional part (sign of x) and stores the
  integer part (trunc, toward zero) in *iptr.
- rint / nearbyint (truncate.hpp): round to nearest, halfway to EVEN (IEEE
  default) -- distinct from ereal's existing round() which is halfway away from
  zero. ereal has no dynamic rounding mode or FE_INEXACT flag, so nearbyint is
  identical to rint.

Verified against std:: on gcc and clang, including round-half-to-even ties
(2.5->2, 3.5->4, -2.5->-2, -3.5->-4) and modf int+frac == x. Test cases added to
the existing minmax/fractional/truncate suites; mathlib.hpp location notes
updated. cppcheck-clean.

Resolves #1165
Relates to #582

23 of 27 new or added lines in 3 files covered. (85.19%)

20 existing lines in 2 files now uncovered.

49789 of 58742 relevant lines covered (84.76%)

7022115.39 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
85.37
-7.97% include/sw/universal/number/ereal/math/functions/fractional.hpp

Coverage Regressions

Lines Coverage ∆ File
10
93.95
-0.58% include/sw/universal/number/cfloat/cfloat_impl.hpp
10
31.43
-3.57% include/sw/universal/verification/test_suite_randoms.hpp
Jobs
ID Job ID Ran Files Coverage
1 29741065847.1 20 Jul 2026 12:53PM UTC 700
84.76
GitHub Action Run
Source Files on build 29741065847
  • Tree
  • List 700
  • Changed 8
  • Source Changed 4
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29741065847
  • 4983b6da on github
  • Prev Build on main (#29737947253)
  • Next Build on main (#29750128328)
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