Cent/ucent why should we implement?

Luna luna at foxgirls.gay
Sun Sep 6 02:03:09 UTC 2026


On Friday, 14 August 2026 at 16:27:50 UTC, Richard (Rikki) Andrew 
Cattermole wrote:
> Another monthly meeting has occurred, this time one of the 
> things I presented was for my PR to implement cent/ucent.
>
> The reception was not the warmest, with questioning on why to 
> do it.
>
> Does anyone have reasons for they may want it in language?
>
> Mine:
>
> - Some basic arithmetic can only be described using double the 
> word-size type, like with overflow, without using intrinsics.
> - Atomics use it for cas
> - SIMD types go above word-size.
>
> Has anyone got any other reasons?
>
> https://github.com/dlang/dmd/pull/23575

Makes writing float/double parsers far easier given then you can 
assume that the compiler implements 128 bit values correctly



More information about the Digitalmars-d mailing list