[vtkusers] Question about 64-bit ids and long

Mathieu Malaterre mathieu.malaterre at gmail.com
Tue Sep 23 10:45:11 EDT 2008


On Tue, Sep 23, 2008 at 4:39 PM, Nick Gnedin <gnedin at fnal.gov> wrote:
>
> Mathieu,
>
> Thank you so much for all your answers.
>
>> maybe, but that not the definition of vtkIdType. On 32bits, I want to
>> be able to have vtkIdType of 64bits.
>
> Could you tell me why? I am just curious - I do not see a clear reason.

I do not know why, that's the defined behavior IMHO. At least on linux
(BIGMEM) you can address 4Gb even on 32bits system AFAIK.


> If long long works, then it is fine. I just thought that long, being a
> standard type, is more portable. In fact, until very recently I thought that
> long long is 128-bit on a 64-bit platform.

sizeof(long long) returns 8 on my linux box (amd64)

-- 
Mathieu



More information about the vtkusers mailing list