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

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

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 15 Mar 2026 09:26PM UTC
Jobs 1
Files 618
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

15 Mar 2026 08:57PM UTC coverage: 84.06% (+0.02%) from 84.04%
23119164012

push

github

web-flow
feat(unum1): implement native type conversions (#573)

* feat(unum1): implement native type conversions for unum Type I

Implement operator=(double) that encodes IEEE-754 doubles into unum
Type I format by decomposing into sign, exponent, and fraction, then
finding the tightest esize/fsize representation. The ubit is set when
the value cannot be represented exactly.

Key design decisions:
- IEEE-754-style subnormal convention: biased_exp=0 means hidden bit
  is 0 (subnormal/zero), biased_exp>0 means hidden bit is 1 (normal)
- Encoder finds smallest esize where biased_exp >= 1 (avoids
  subnormal zone for normal values)
- Encoder finds smallest fsize that exactly captures the fraction;
  sets ubit=1 if no exact match within max fsize
- to_double() updated to handle subnormal decoding

Also implements:
- Integer assignment via double conversion
- Unary negation (sign bit flip)
- Conversion test suite covering exact round-trips (powers of 2,
  binary fractions), inexact ubit flagging (1/3, pi), negative
  values, integer assignment, and unary negation

Resolves #565

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

* fix(unum1): update education example to use unsigned template params

The unum template changed from size_t to unsigned parameters in Phase 1.
Update basic_operators.cpp to match.

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

---------

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

67 of 74 new or added lines in 1 file covered. (90.54%)

4 existing lines in 3 files now uncovered.

43216 of 51411 relevant lines covered (84.06%)

6130613.92 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
89.61
7.05% include/sw/universal/number/unum/unum_impl.hpp

Coverage Regressions

Lines Coverage ∆ File
2
89.8
0.0% include/sw/universal/number/posito/posito_impl.hpp
1
89.61
7.05% include/sw/universal/number/unum/unum_impl.hpp
1
34.64
-0.36% include/sw/universal/verification/test_suite_randoms.hpp
Jobs
ID Job ID Ran Files Coverage
1 23119164012.1 15 Mar 2026 09:26PM UTC 618
84.06
GitHub Action Run
Source Files on build 23119164012
  • Tree
  • List 618
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23119164012
  • ed1fc8d3 on github
  • Prev Build on main (#23117684882)
  • Next Build on main (#23120256353)
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