-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
Fix issue 19905 Floating point .init should be bitwise identical to .nan #9897
Conversation
|
One last vestige is Line 86 in 2457038
Summary of all possible values) since it has (at least) the top and bottom bits sets (which means distinction between MSB and LSB is moot).
|
Yeah, that looks dubious. I don't remember well but I think we settled on to use qnan throughout. This one is a qnan, so the comment is wrong. These look dubious, too, the highest bit should be used to set signalling/quiet: Lines 663 to 664 in 2457038
|
Good I'm not crazy then.
If we go through with this then I think we can get rid of snan completely. |
3633623 to
9fbb263
Compare
|
I wonder whether problematic values might stick from bad nans in the host compiler as they are more or less reused. A test with an explicit check of the bit patterns would be nice. |
9fbb263 to
73ca07b
Compare
|
Thanks for your pull request and interest in making D better, @thewilsonator! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub fetch digger
dub run digger -- build "master + dmd#9897" |
|
Added a test, lets find out. |
|
The spec apparently already says that I think this is good to go. |
|
This blocks #7568 |
Thanks, looks good now. I was thinking about a more explicit and extensive test, though, e.g. It should better be merged with some related test files, runnable/nan.d would be a good candidate. |
73ca07b to
200a861
Compare
|
Applied that test. |
200a861 to
2fbf14a
Compare
|
@rainers I think this is good to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied that test.
Thanks. Sorry for the delay.
|
No problems. |
See also #7568 in particular #7568 (comment)