On Friday, 8 July 2022 at 15:32:44 UTC, Rob T wrote:
https://forum.dlang.org/post/mailman.10914.1566237225.29801.digitalmars-d-le...@puremagic.com

In case someone comes across this old thread

https://dlang.org/phobos/core_int128.html

There was a discussion on this not long ago. Walter tried implementing it recently too, though I'm guessing he gave up.

https://forum.dlang.org/thread/wuiurmxvqjcuybfip...@forum.dlang.org

There's multiple libraries, one of which i wrote which tries to address this issue.

One thing you can try doing is using BigInt, and then reducing to 128bit if/when you need to store the result. Apparently a number of compilers and back-ends already know how to handle 128bit types (*and maybe larger*), but it's a matter of just putting it in the D frontend so it generates the appropriate calls.

https://github.com/d-gamedev-team/gfm/blob/master/integers/gfm/integers/wideint.d

https://github.com/rtcvb32/Side-Projects/tree/master/arbitraryint

Reply via email to