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

Make std.math.isIdentical work in CTFE #10386

Closed
dlangBugzillaToGithub opened this issue Sep 8, 2019 · 2 comments
Closed

Make std.math.isIdentical work in CTFE #10386

dlangBugzillaToGithub opened this issue Sep 8, 2019 · 2 comments

Comments

@dlangBugzillaToGithub
Copy link

n8sh.secondary reported this on 2019-09-08T16:13:35Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=20197

Description

Making std.math.isIdentical work for real NaN when real is more than 64 bits requires either changing `is` for floats to be a binary comparison (like https://github.com/dlang/dmd/pull/7568) or adding support for CTFE reinterpretation of reals as byte arrays. This is a subissue of Issue #17007.
@dlangBugzillaToGithub
Copy link
Author

n8sh.secondary commented on 2020-06-06T00:16:16Z

Actually it doesn't require this since in CTFE there is no way to construct a real nan with a payload that would be lost when casting to double.

@dlangBugzillaToGithub
Copy link
Author

dlang-bot commented on 2020-06-06T01:32:49Z

@n8sh created dlang/phobos pull request #7515 "Make std.math.isIdentical work in CTFE" fixing this issue:

- Fix Issue 20197 - Make std.math.isIdentical work in CTFE

https://github.com/dlang/phobos/pull/7515

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants