[Issue 19976] New: Simplify std.internal.convert.toUbyte CTFE path for float and double

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 17 01:30:16 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=19976

          Issue ID: 19976
           Summary: Simplify std.internal.convert.toUbyte CTFE path for
                    float and double
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: n8sh.secondary at hotmail.com

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.

--


More information about the Digitalmars-d-bugs mailing list