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

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

Build:
Build:
LAST BUILD BRANCH: feat/takum-log
DEFAULT BRANCH: master
Ran 18 Jul 2026 12:23AM 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

17 Jul 2026 11:40PM UTC coverage: 84.621% (+0.01%) from 84.611%
29621270080

push

github

web-flow
fix(bfloat16): round float conversion to nearest-even instead of truncating (#1134)

convert_ieee754() kept the upper 16 bits of the source IEEE-754 float by a
bare `bits >> 16`, discarding the low 16 bits with no rounding. That is
round-toward-zero (truncation); Google TPUs and Intel round the float->bfloat16
conversion to nearest, ties-to-even (RNE).

Add RNE via the standard magic rounding bias `0x7FFF + lsb_of_retained_field`
before the shift, so more-than-half rounds up, less-than-half stays, and an
exact-half tie rounds toward the even significand. A carry propagates correctly
into the exponent, and a value within half a ulp of the range limit rounds to
inf. A dedicated NaN guard keeps a float NaN whose payload lives only in the
low 16 bits from collapsing to +/-inf.

Update numeric_limits<bfloat16>::round_style to round_to_nearest to match, and
add static/float/bfloat16/conversion/round_to_nearest_even.cpp covering the
issue's case (0.2691408770292272 -> 0.26953125, previously 0.267578125),
up/down rounding, tie-to-even boundaries, and inf/nan/zero preservation.

Resolves #1133

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%)

49217 of 58162 relevant lines covered (84.62%)

6677199.64 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29621270080.1 18 Jul 2026 12:23AM UTC 693
84.62
GitHub Action Run
Source Files on build 29621270080
  • Tree
  • List 693
  • Changed 4
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29621270080
  • ba587e3d on github
  • Prev Build on main (#29619455885)
  • Next Build on main (#29643890345)
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