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

stillwater-sc / universal / 42504241940
89%
master: 84%

Build:
Build:
LAST BUILD BRANCH: fix/fixpnt-quire-resolve-saturates
DEFAULT BRANCH: master
Ran 08 Nov 2026 05:39PM UTC
Jobs 1
Files 870
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

08 Nov 2026 05:17PM UTC coverage: 88.802% (+0.02%) from 88.778%
42504241940

push

github

web-flow
fix(elreal): zero and sign of cancelled values, C99 special values, pow and exp range (#2013)

A cancelled result such as a - a is a stream of zero blocks, so iszero()
was false: 1/(a-a) was 0 and log(a-a) did not terminate. The leading
block of 1 - (1 + 2^-100) is zero, so sign, scale, abs, signbit and
significand read the wrong block. iszero, sign and scale now use the
first nonzero block within precision() + 1 blocks, the window in which
== decides equality. The math functions get canonical(): the stream
from that block on, or empty for a zero. elreal keeps one unsigned zero
(user decision). Comparison stops at the first deciding block (1/3 <
1/7: 2.0 -> 0.16 ms). Integers construct exactly. The mixed elreal/double
comparisons are complete.

The math facade returns C99 Annex F special values for NaN, inf and
out-of-domain arguments. pow decides integer-ness from the stream's
blocks (pow(2, 3 + 2^-200) was 8, and 2^2000 + 0.5 is exact on any
host), gives negative bases the sign of odd integer exponents, and
follows C99 for zero bases. exp reduces by k*ln2 and scales by 2^k
exactly (exp(40) at 32 blocks: 45.9 -> 11.5 s; exp(1e6) finishes).
sinh, cosh, tanh and the pow argument share the 2^62 range guard. The
default-precision cost of the series (about 10 s per call at 32 blocks)
is tracked in #2014.

New: stream_utilities.hpp, and the tests elastic/elreal/api/
zero_and_sign.cpp and math_special_values.cpp.

BEHAVIOUR-CHANGE: elreal iszero/sign/scale/abs/signbit/significand read the first nonzero block, so cancelled values are zero and a leading zero block no longer gives the wrong sign; integer construction is exact; the math functions return C99 special values for NaN, inf and out-of-domain arguments; pow changes for negative and zero bases and for exponents near an integer

Resolves #2003
Resolves #2004
Relates to #1999

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

209 of 213 new or added lines in 5 files covered. (98.12%)

4 existing lines in 2 files now uncovered.

59816 of 67359 relevant lines covered (88.8%)

9686033.84 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
97.58
-2.42% include/sw/universal/number/elreal/mathlib.hpp
1
97.44
include/sw/universal/number/elreal/stream_utilities.hpp

Coverage Regressions

Lines Coverage ∆ File
3
95.95
-4.05% include/sw/universal/number/elreal/math/exponent.hpp
1
93.16
-0.85% include/sw/universal/verification/correctly_rounded_reference.hpp
Jobs
ID Job ID Ran Files Coverage
1 42504241940.1 08 Nov 2026 05:39PM UTC 870
88.8
GitHub Action Run
Source Files on build 42504241940
  • Tree
  • List 870
  • Changed 7
  • Source Changed 4
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42504241940
  • ff4c02cb on github
  • Prev Build on main (#42492116717)
  • Next Build on main (#42523560319)
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