Bug 19976 – Simplify std.internal.convert.toUbyte CTFE path for float and double
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-06-17T01:30:16Z
Last change time
2020-04-24T03:22:46Z
Assigned to
No Owner
Creator
Nathan S.
Comments
Comment #0 by n8sh.secondary — 2019-06-17T01:30:16Z
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.
Comment #1 by dlang-bot — 2019-06-17T01:39:37Z
@n8sh created dlang/druntime pull request #2642 "Issue 19976 - Simplify std.internal.convert.toUbyte CTFE path for float and double" mentioning this issue:
- Issue 19976 - Simplify std.internal.convert.toUbyte CTFE path for float and double
https://github.com/dlang/druntime/pull/2642
Comment #2 by dlang-bot — 2019-06-27T03:28:01Z
dlang/druntime pull request #2642 "Issue 19976 - Simplify std.internal.convert.toUbyte CTFE path for float and double" was merged into master:
- 29eb98cf1f43965eebb1ed17ed94a6f4c5d23f65 by Nathan Sashihara:
Fix Issue 19976 - Simplify std.internal.convert.toUbyte CTFE path for float and double
https://github.com/dlang/druntime/pull/2642
Comment #3 by dlang-bot — 2020-04-24T03:22:46Z
dlang/druntime pull request #3063 "[dmd-cxx] Backport internal.convert, toPrec, SIMD aliases." was merged into dmd-cxx:
- 0e0b63ccc5dd1305e9b9eeb4859f6f6fe6f49d2a by Nathan Sashihara:
Fix Issue 19976 - Simplify std.internal.convert.toUbyte CTFE path for float and double
https://github.com/dlang/druntime/pull/3063