[dmd-internals] [D-Programming-Language/dmd] 234fa1: Fix issue 9170 CTFE: Allow reinterpret casts float...
GitHub
noreply at github.com
Tue Dec 18 10:13:24 PST 2012
Branch: refs/heads/master
Home: https://github.com/D-Programming-Language/dmd
Commit: 234fa182b11aaf7e9c87d5b4ad85a1121691e61a
https://github.com/D-Programming-Language/dmd/commit/234fa182b11aaf7e9c87d5b4ad85a1121691e61a
Author: Don Clugston <emailsdontbelong at inarepository.com>
Date: 2012-12-17 (Mon, 17 Dec 2012)
Changed paths:
M src/ctfe.h
M src/ctfeexpr.c
M src/interpret.c
M test/compilable/interpret3.d
Log Message:
-----------
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.
Commit: ab21c35fd8622df4589411c0a6226284f32bfbbd
https://github.com/D-Programming-Language/dmd/commit/ab21c35fd8622df4589411c0a6226284f32bfbbd
Author: Walter Bright <walter at walterbright.com>
Date: 2012-12-18 (Tue, 18 Dec 2012)
Changed paths:
M src/ctfe.h
M src/ctfeexpr.c
M src/interpret.c
M test/compilable/interpret3.d
Log Message:
-----------
Merge pull request #1383 from donc/ctfe9170reinterpret_float_int
9170 CTFE: Allow reinterpret casts float <-> int
Compare: https://github.com/D-Programming-Language/dmd/compare/a739c13caa66...ab21c35fd862
More information about the dmd-internals
mailing list