Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue 9170 CTFE: Allow reinterpret casts float <-> int
Only allows the special case *(cast(U*))&e, where e is an expression of type T, T.sizeof == U.sizeof, one type is integral (int, uint, long, ulong) and the other is floating point (float, double, ifloat, idouble). Purpose: allow implementation of HalfFloat.
- Loading branch information
1 parent
3662698
commit 234fa18
Showing
4 changed files
with
132 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters