Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Issue 19976 - Simplify std.internal.convert.toUbyte CTFE path for float and double #2642

Merged
merged 1 commit into from
Jun 27, 2019

Conversation

n8sh
Copy link
Member

@n8sh n8sh commented Jun 17, 2019

DMD supports (double x) => *cast(ulong*) &x and (int y) => *cast(uint*) &y during CTFE so there's no need for elaborate measures to determine the bitwise representation of floats and doubles in CTFE.

@dlang-bot
Copy link
Contributor

dlang-bot commented Jun 17, 2019

Thanks for your pull request, @n8sh!

Bugzilla references

Auto-close Bugzilla Severity Description
19976 enhancement Simplify std.internal.convert.toUbyte CTFE path for float and double

Testing this PR locally

If 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 + druntime#2642"

@n8sh n8sh force-pushed the issue-19976 branch 3 times, most recently from f7f005f to 15b2580 Compare June 17, 2019 02:43
@dlang-bot dlang-bot added the Enhancement New functionality label Jun 24, 2019
@dlang-bot dlang-bot merged commit b592940 into dlang:master Jun 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Enhancement New functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants