The future of Int128 support in D language

Johan j at j.nl
Sun Jan 8 11:51:19 UTC 2023


On Sunday, 8 January 2023 at 03:11:15 UTC, Siarhei Siamashka 
wrote:
>
> I'm posting this because I tried to experiment with Int128 in 
> https://github.com/ssvb/speedy-int128 and see that performance 
> parity with Clang can be easily achieved for LDC after applying 
> a few minor tweaks.

Nice.

> What's the best way to get some inline LLVM IR optimizations 
> for Int128 included in the next release of LDC? So that it 
> works fast out of the box. The struct alignment is causing some 
> troubles though.

Submit PRs to LDC's Phobos.
https://github.com/ldc-developers/phobos
We use "version (LDC)", see e.g. 
https://github.com/ldc-developers/phobos/blob/63090119d71f9795744618c7386b7d6f29454a15/std/math/traits.d#L614-L629

What's the alignment issue?

cheers,
   Johan



More information about the Digitalmars-d mailing list