August 20, 2013 [dmd-internals] Painting literals in CTFE | ||||
---|---|---|---|---|
| ||||
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';
_______________________________________________
dmd-internals mailing list
dmd-internals@puremagic.com
http://lists.puremagic.com/mailman/listinfo/dmd-internals
|
Copyright © 1999-2021 by the D Language Foundation