[Dlang-internal] I need cent and ucent to be implemented soon
user1234
user1234 at 12.de
Sat May 4 18:16:33 UTC 2019
On Saturday, 4 May 2019 at 16:15:33 UTC, Alex wrote:
> On Saturday, 4 May 2019 at 12:00:08 UTC, user1234 wrote:
>> 128 bits int are supposed to be a fast, fixed size, standard
>> integer type.
>
> Hey, sorry for degrading this to a learn forum section and I
> promise I stop posting such silly questions here very soon.
Good initiative.
> But just out of interest: Isn't this true, only in the case
> where such ints are native to the architecture? If so, and if
> you see a machine of such architecture in the wild, could you
> post a link here?
SSE regs are wide enough...
Also in a far past a similar situation existed with 64 bits int
on x86 CPUs, were machine word was 32 bits. The int was either
passed as a struct or split and passed in two regs and then some
special intrinsic functions were used for the different ops.
Technically nothing prevents to have them, it's just that someone
has to do the work. There's a good pile of operation to
implement: arithetic, bitwise... some stuff with the implicit
conversions too, etc.
As said with DMD this won't be as good as with other compilos
which have intrinsics for all the ops (AFAIU).
More information about the Dlang-internal
mailing list