long long

Gabriel Dos Reis gdr at integrable-solutions.net
Thu Aug 2 19:32:26 CEST 2012


On Thu, Aug 2, 2012 at 8:04 AM, Joerg Arndt <arndt at jjj.de> wrote:
> * Niels Möller <nisse at lysator.liu.se> [Aug 02. 2012 14:41]:
>> Marc Glisse <marc.glisse at inria.fr> writes:
>>
>> > Ok, now I've criticized intmax_t enough,
>>
>> I guess this is an age old problem of backwards compatibility. As I have
>> understood it, originally in C, long was intended to be the largest
>> integer type supported by the compiler, which was usually 32 bits. When
>> 64-bit arithmetic was introduced, long couldn't be extended to 64 bits
>> for fear of breaking too much old code, and thus long long was invented.
>> And now intmax_t is suffering more or less the same process as long...
>>
>> Regards,
>> /Niels
>>
>> [...]
>
> Is there any platform _apart_ from Windows64 where
>   sizeof long != length of general purpose CPU registers
> ?

I would think the increasingly popular X32 ABI

  https://sites.google.com/site/x32abi/

is a good example.

-- Gaby


More information about the gmp-devel mailing list