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

Ensure that IsPow2 for floating-point numbers correctly take subnormal values into account #88839

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

tannergooding
Copy link
Member

This resolves #88023 by ensuring that subnormal values check for a trailing significand with 1 bit set.

@ghost
Copy link

ghost commented Jul 13, 2023

Tagging subscribers to this area: @dotnet/area-system-numerics
See info in area-owners.md if you want to be subscribed.

Issue Details

This resolves #88023 by ensuring that subnormal values check for a trailing significand with 1 bit set.

Author: tannergooding
Assignees: -
Labels:

area-System.Numerics

Milestone: -

@tannergooding tannergooding merged commit 8468f80 into dotnet:main Jul 14, 2023
165 of 171 checks passed
@ghost ghost locked as resolved and limited conversation to collaborators Aug 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

double.IsPow2 reports incorrectly for subnormal numbers
2 participants