Can we have ucent ?
Iain Buclaw
ibuclaw at gdcproject.org
Sun Nov 4 00:58:48 UTC 2018
On Sun, 4 Nov 2018 at 01:50, Walter Bright via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> On 11/3/2018 5:58 AM, Johan Engelen wrote:
> > LDC has had a PR open for adding `ucent` since a long time [*]. The biggest
> > implementation hurdle seems to be that we (LDC) don't have our own frontend.
> >
> > In my opinion this effort should be split into two parts:
> > 1 - Add `ucent` support to the frontend (semantic analysis, CTFE)
> > Simply emit an error in the backend when `ucent` codegen is requested,
> > saying that "ucent is not yet supported for the current target".
> > `wideint` library could be used to do 128-bit math at compile-time.
> > 2 - Add `ucent` support to DMD, LDC, GDC backends. (easy for LDC and GDC)
>
> Yes it could be done like the soft float is currently done for 80 bit reals.
>
> https://github.com/dlang/dmd/blob/master/src/dmd/root/longdouble.d
On my todo list. ;-)
https://github.com/dlang/dmd/pull/7699
--
Iain
More information about the Digitalmars-d
mailing list