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

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

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 29 Jun 2026 12:15AM UTC
Jobs 1
Files 690
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

28 Jun 2026 11:31PM UTC coverage: 84.651% (+0.009%) from 84.642%
28339727021

push

github

web-flow
feat(efloat): implement mathematical power and exponential library (#1126)

* feat(efloat): implement mathematical power and exponential library (#1113)

Implement pow(x, int_y) (fast integer power), pow(x, const_y) (transcendental power),
exp2(), exp10(), and expm1() (with Taylor series small-input protection and
dynamic precision-based loop termination) inside math/pow.hpp.

Register math/pow.hpp inside our master efloat mathlib.hpp header.

Create pow.cpp inside elastic/efloat/math/ to verify all power and exponential
functions against extreme boundary conditions, negative base integers, and small Taylor range
cancellation protections.

Resolves #1113
Relates to parent Issue #1092, Epic #1101

* fix(efloat): resolve CodeRabbit reviews and ASCII failure on power library

1. Resolve ASCII Guard check failure in pow.cpp:
   replace the non-ASCII approximation symbol '≈' with standard ASCII '~=' inside
   the comments of pow.cpp, satisfying the repository's 7-bit ASCII-only rule.

2. Correct exp2(0) and exp10(0) return values:
   re-branch exp2 and exp10 in pow.hpp so they branch on x.iszero() separately and return
   exactly 1.0 instead of returning 0.0. Added zero-input tests inside pow.cpp.

3. Reorder NaN fast paths in pow(x, y) around IEEE boundaries:
   put y.iszero() and x == 1.0 checks BEFORE the nan-checks so that pow(NaN, 0.0) and
   pow(1.0, NaN) correctly return 1.0 according to IEEE-754 standards. Added boundary tests.

4. Guard integer_power from INT_MIN negation overflow:
   cast the negated exponent to uint64_t safely ('0ULL - static_cast<uint64_t>(exponent)')
   inside integer_power to prevent signed integer overflow. Added pow(-1, INT_MIN) test.

5. Implement efloat-native integer parity checks in pow(x, y):
   replace narrowing 'llrint(y)' checks with exact, non-narrowing bit-level checks
   checking if the bit at weight 2^0 is 1.

Resolves #1113, PR #1126

86 of 97 new or added lines in 1 file covered. (88.66%)

2 existing lines in 1 file now uncovered.

49094 of 57996 relevant lines covered (84.65%)

6697641.53 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
88.66
include/sw/universal/number/efloat/math/pow.hpp

Coverage Regressions

Lines Coverage ∆ File
2
89.78
-0.55% include/sw/universal/number/posito/posito_impl.hpp
Jobs
ID Job ID Ran Files Coverage
1 28339727021.1 29 Jun 2026 12:15AM UTC 690
84.65
GitHub Action Run
Source Files on build 28339727021
  • Tree
  • List 690
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28339727021
  • 2e8b16c0 on github
  • Prev Build on main (#28328952317)
  • Next Build on main (#28368322669)
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