When will you implement cent and ucent?

Walter Bright newshound2 at digitalmars.com
Sat Apr 2 22:38:55 UTC 2022


On 4/2/2022 2:40 PM, Iain Buclaw wrote:
> 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. ;-)

I know. I was dreading doing the work you did for divide, glad you picked up the 
flag! I had done the equivalent for DMC's long divide long ago.


More information about the Digitalmars-d mailing list