Can we have ucent ?

Walter Bright newshound2 at digitalmars.com
Sun Nov 4 00:47:19 UTC 2018


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


More information about the Digitalmars-d mailing list