[dmd-internals] Painting literals in CTFE
Iain Buclaw
ibuclaw at ubuntu.com
Tue Aug 27 08:42:38 PDT 2013
On 20 August 2013 13:03, Iain Buclaw <ibuclaw at ubuntu.com> wrote:
> Hi,
>
> Question aimed vaguely at Don.
>
> The routine paintFloatInt in ctfeexpr.c is not portable across
> compilers (gdc implements its own way of painting float<->int,
> double<->long through something other than using a union). Would it
> be possible to split this off somewhere, such as port.c/target.c -
> depending on how much of the front-end we need access to in order to
> carry out the operation?
>
>
Ping on this.
--
Iain Buclaw
*(p < e ? p++ : p) = (c & 0x0f) + '0';
More information about the dmd-internals
mailing list