When will you implement cent and ucent?

Iain Buclaw ibuclaw at gdcproject.org
Sat Apr 2 21:40:45 UTC 2022


On Saturday, 2 April 2022 at 19:06:01 UTC, Walter Bright wrote:
> Another advantage to core.int128 is any soft implementation of 
> a 128 bit integer does not need to concern itself with the 
> correctness of the arithmetic - just the user side of the 
> integer type.
>
> I also like core.int128 does not import anything else, making 
> it a true leaf module.
>
> Edit: Oh darn, it imports core.bitop!

It's only bsr, the compiler inlines that into one instruction. ;-)


More information about the Digitalmars-d mailing list