feat(bfloat16): add arithmetic operations with mode support#4
Open
dndungu wants to merge 28 commits intozerfoo:mainfrom
Open
feat(bfloat16): add arithmetic operations with mode support#4dndungu wants to merge 28 commits intozerfoo:mainfrom
dndungu wants to merge 28 commits intozerfoo:mainfrom
Conversation
Adds more tests for the math and arithmetic packages to increase overall test coverage. - Adds tests for Pow, Exp, Exp2, Log, Log2, Log10, Sin, Cos, Tan, Floor, Ceil, Round, Trunc, Mod, and Hypot in math_extra_test.go. - Adds tests for AddWithMode, MulWithMode, DivWithMode, Equal, Less, Min, Max, and slice operations in arithmetic_extra_test.go. - Corrects precision issues in math_extra_test.go.
Adds more tests for the convert package to increase overall test coverage. - Adds tests for FromFloat64 and ToFloat64 in convert_extra_test.go.
Adds more tests for the types package to increase overall test coverage. - Adds tests for Error, String, GoString, Class, and leadingZeros10 in types_extra_test.go.
Adds more tests for the arithmetic package to increase overall test coverage. - Adds tests for AddWithMode, MulWithMode, and DivWithMode in arithmetic_extra_test.go.
Adds more tests for the arithmetic package to increase overall test coverage. - Adds tests for MulWithMode and DivWithMode in arithmetic_extra_test.go.
Adds more tests for the convert package to increase overall test coverage. - Adds tests for FromFloat64WithMode in convert_extra_test.go.
Adds more tests for the convert package to increase overall test coverage. - Adds tests for FromFloat64WithMode in convert_extra_test.go.
- Apply general refactoring and cleanup to core float16 files.
…licates in ToFloat16/ToSlice16
… across rounding modes
…add Bits/FromBits; implement CopySign
- Add .golangci.yml with standard Go linters - Enable gofmt, govet, staticcheck, misspell, etc. - Set timeout and complexity thresholds
Add BFloat16 Add/Sub/Mul/Div with IEEE and strict modes, overflow/underflow detection, and configurable rounding. Fix golangci-lint v2 config. Remove temporary calc file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
version: "2", separate formatters)Test plan
bfloat16_arithmetic_test.go