Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify rounding for precision=1 #37

Merged
merged 2 commits into from
Sep 17, 2024
Merged

Simplify rounding for precision=1 #37

merged 2 commits into from
Sep 17, 2024

Conversation

awf
Copy link
Collaborator

@awf awf commented Sep 17, 2024

Rounding for precision = 1 had complex logic to increment the exponent if the significand increased to 2, however this was not needed, either for p=1, or indeed, for any precision - if the significand becomes 2**p, it simply reconstructs the first value in the next binade, which is always non-subnormal.

@awf awf merged commit ca391b8 into main Sep 17, 2024
1 check passed
@awf awf deleted the tidy-rounding-2 branch September 17, 2024 13:53
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