D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19976 - Simplify std.internal.convert.toUbyte CTFE path for float and double
Summary: Simplify std.internal.convert.toUbyte CTFE path for float and double
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: All All
: P1 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-17 01:30 UTC by Nathan S.
Modified: 2020-04-24 03:22 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Nathan S. 2019-06-17 01:30:16 UTC
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 Dlang Bot 2019-06-17 01:39:37 UTC
@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 Dlang Bot 2019-06-27 03:28:01 UTC
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 Dlang Bot 2020-04-24 03:22:46 UTC
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