Skip to content

feat(bfloat16): error handling, comprehensive tests, v1 plan update#15

Merged
dndungu merged 3 commits into
mainfrom
feat/bfloat16-error-handling
Mar 30, 2026
Merged

feat(bfloat16): error handling, comprehensive tests, v1 plan update#15
dndungu merged 3 commits into
mainfrom
feat/bfloat16-error-handling

Conversation

@dndungu

@dndungu dndungu commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

T46.5.9, T46.5.10, T46.5.11

dndungu added 3 commits March 30, 2026 10:41
Add BFloat16Error type mirroring Float16Error with "bfloat16" prefix
in error messages. Wire it into strict conversion path
(BFloat16FromFloat32WithMode) and all checked arithmetic operations
(BFloat16AddWithMode, BFloat16MulWithMode, BFloat16DivWithMode).
Update existing tests to assert the new typed error.
Add 256-value boundary pattern tests covering roundtrip, classification
consistency, identity operations. Cover all previously-uncovered
functions: IsSubnormal, comparisons, Abs, Min/Max, cross-conversions,
FromFloat64, Format verbs, rounding modes. Average bfloat16 function
coverage: 99.6% across 68 functions.
Rename "BFloat16 Enhancement Plan" to "Float16 v1 Release Notes".
Mark all 6 phases complete: core infrastructure, arithmetic,
extended operations, math functions, utilities, and error
handling/testing.
@dndungu dndungu merged commit 2bc42db into main Mar 30, 2026
@dndungu dndungu deleted the feat/bfloat16-error-handling branch March 30, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant