[gdal-dev] RFC 31 - OGR 64bit Support
mateusz at loskot.net
Mon Nov 29 10:09:39 EST 2010
On 29/11/10 14:57, Even Rouault wrote:
> 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.
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
Member of ACCU, http://accu.org
More information about the gdal-dev