Is there anyway to access LLVM's 128 bit int type for C from LDC?
Jack Stouffer
jack at jackstouffer.com
Fri Dec 15 01:17:17 UTC 2017
On Thursday, 14 December 2017 at 23:33:34 UTC, Nicholas Wilson
wrote:
> On Thursday, 14 December 2017 at 19:47:53 UTC, Jack Stouffer
> wrote:
>> Clang has __int128. Is there anyway to use this with D with
>> LDC?
>
> Not really as a plain type, although there is effort to get
> [u]cent working. I could have sworn that mir was using InlineIR
> with it for multiplication. But InlineIR is the only way to get
> at it.
>
> What operation do you need on it?
I'm looking to use it to store the coefficient in my precise
decimal type when you need more than 9 significant digits.
I might just end up translating Boost's multiprecision lib to D
if ucent is impossible.
More information about the Digitalmars-d-learn
mailing list