128 bit signed and unsigned integer types
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Mon Dec 29 09:51:29 PST 2008
Martin d'Anjou wrote:
>> template FixedInt(uint n) if (n == 8) { alias byte FixedInt; }
>> template FixedInt(uint n) if (n == 16) { alias short FixedInt; }
>> template FixedInt(uint n) if (n == 32) { alias int FixedInt; }
>> template FixedInt(uint n) if (n == 64) { alias long FixedInt; }
>
> Where can I find FixedInt for generic values of n? I assume FixedInt
> will not resize itself ever. Perfect for emulating hardware/CPU
> registers of arbitrary size.
>
> Martin
As of now it's in your mind.
<makes Jedi hand gesture>
You only need to write it down and contribute it to Phobos.
Andrei
More information about the Digitalmars-d
mailing list