[dmd-internals] Painting literals in CTFE

Iain Buclaw ibuclaw at ubuntu.com
Tue Aug 20 05:03:35 PDT 2013


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?


Thanks
-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


More information about the dmd-internals mailing list