[gdal-dev] RFC 31 - OGR 64bit Support
David Burken
dburken at comcast.net
Mon Nov 29 10:22:24 EST 2010
On 11/29/2010 10:09 AM, Mateusz Loskot wrote:
> On 29/11/10 14:57, Even Rouault wrote:
>> David,
>>
>> yes, on most 64bit platforms, sizeof(long long)=sizeof(long)=8.
>> Except on Win64,
>> where sizeof(long) still = 4 ( see
>> http://en.wikipedia.org/wiki/64-bit#Specific_C-language_data_models
>> ). And of
>> course on 32bit platforms, sizeof(long)=4. So the need for an
>> explicit 64bit API
>> is needed.
>
> And, that's why name GBigInt is meaningless.
> In order to avoid any ambiguities, GDAL/OGR API should make
> use of exact size types *only*, it is [u]int32_t and [u]int64_t,
> in its public API.
>
> Best regards,
Not arguing, was just pointing out the obvious. I agree, all interfaces
that uses "int"s should use typedefs...
Dave
More information about the gdal-dev
mailing list