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

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

Build:
Build:
LAST BUILD BRANCH: feat/takum-log
DEFAULT BRANCH: master
Ran 18 Jul 2026 12:53PM UTC
Jobs 1
Files 693
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 Jul 2026 12:11PM UTC coverage: 84.613% (-0.07%) from 84.68%
29643883548

push

github

web-flow
fix(efloat): implement abs()/fabs() (were a no-op stub) (#1138)

The free function abs(efloat) returned its argument unchanged (`return a;`), so
abs(-x) == -x -- every caller that expected a magnitude got a signed value. Fix
clears the sign on a copy, which is correct for every state: a negative normal
becomes positive, -inf becomes +inf, -0 becomes +0, and NaN stays NaN. Also add
the standard <cmath> spelling fabs() as a thin alias.

Side benefit: log1p's small-argument guard `abs(x) < 0.375` (logarithm.hpp) was
effectively the signed test `x < 0.375` under the stub, routing moderately
negative arguments into the slow Taylor path; with a correct abs it now gates by
magnitude as intended (verified: log1p matches std::log1p to machine precision
for x in [-0.9, 0.9]).

New regression test elastic/efloat/math/absolute.cpp (target efloat_absolute)
covers normal/zero/inf/NaN and explicitly asserts abs(-x) != x. Validated on
gcc 13.3.0 and clang 18.1.3; existing efloat math suite unaffected.

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

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

42 existing lines in 6 files now uncovered.

49216 of 58166 relevant lines covered (84.61%)

6680475.28 hits per line

Coverage Regressions

Lines Coverage ∆ File
14
86.77
-0.33% include/sw/universal/number/efloat/efloat_impl.hpp
12
83.48
-5.22% include/sw/universal/number/efloat/math/truncate.hpp
8
93.95
-0.47% include/sw/universal/number/cfloat/cfloat_impl.hpp
5
50.45
-4.5% include/sw/universal/verification/posit_test_suite_randoms.hpp
2
89.78
0.0% include/sw/universal/number/posito/posito_impl.hpp
1
81.92
1.12% include/sw/universal/number/posit1/specialized/posit_16_1.hpp
Jobs
ID Job ID Ran Files Coverage
1 29643883548.1 18 Jul 2026 12:53PM UTC 693
84.61
GitHub Action Run
Source Files on build 29643883548
  • Tree
  • List 693
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29643883548
  • 5c33ee49 on github
  • Prev Build on main (#29643890345)
  • Next Build on main (#29649682345)
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