The future of Int128 support in D language

Iain Buclaw ibuclaw at gdcproject.org
Mon Jan 9 16:53:11 UTC 2023


On Monday, 9 January 2023 at 16:51:45 UTC, Iain Buclaw wrote:
> On Sunday, 8 January 2023 at 17:36:07 UTC, Johan wrote:
>>
>> I like that you splitted the implementation into a separate 
>> file, that's a good idea.
>>
>> GDC also can benefit of a specialized implementation. Probably 
>> good to ask Iain of how best to approach these specializations 
>> (i.e. what files, how to forward to the specialized 
>> implementation from the upstream druntime file, ...)
>>
>> -Johan
>
> Actually, I had implemented core.int128 as compiler-recognized 
> intrinsics that do the necessary conversion to/from native on 
> the fly.
>

FAOD, on x86_64 these intrinsics resulted in identical assembly 
to  C/C++ __int128.


More information about the Digitalmars-d mailing list