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

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

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 16 Mar 2026 01:31AM UTC
Jobs 1
Files 621
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

16 Mar 2026 01:03AM UTC coverage: 84.135% (+0.03%) from 84.108%
23123625508

push

github

web-flow
feat(unum1): implement math functions (#577)

* feat(unum1): implement math functions for unum Type I

Implement standard math library via double-precision delegation:
sqrt, exp, log, log2, log10, pow, sin, cos, tan, asin, acos, atan,
sinh, cosh, tanh, abs, min, max, floor, ceil, trunc.

All functions handle NaN propagation and domain errors (e.g.,
sqrt(negative) = NaN, log(0) = NaN, asin(2) = NaN). The ubit is
automatically set by operator=(double) for inexact results.

Move abs() from unum_impl.hpp to math_functions.hpp to avoid
redefinition.

Resolves #569

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

* fix(unum1): guard non-finite results and fix min/max NaN handling

Address CodeRabbit review findings:

1. Non-finite native results (inf from exp/pow/sinh/cosh) now map to
   NaN via from_native() helper, since unum Type I has no infinity
   encoding. Also guard operator=(double) against infinity input.

2. min/max now explicitly propagate NaN instead of relying on
   unordered comparison semantics which produced argument-order-
   dependent results.

Add test cases for overflow-to-NaN and min/max NaN propagation.

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

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

65 of 65 new or added lines in 2 files covered. (100.0%)

43397 of 51580 relevant lines covered (84.14%)

6109012.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23123625508.1 16 Mar 2026 01:31AM UTC 621
84.14
GitHub Action Run
Source Files on build 23123625508
  • Tree
  • List 621
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23123625508
  • 3d315e46 on github
  • Prev Build on main (#23121684922)
  • Next Build on main (#23124174253)
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