int64_t == long long
Philipp Thomas
pth@suse.de
Wed Jul 16 20:37:00 GMT 2008
* Yang Zhang (yanghatespam@gmail.com) [20080702 06:50]:
> Steering this thread back on track: I'm still not sure why these are
> different. So far, I know that both long long and int64_t are 64-bit
> signed integral types.
int64_t is a typedef, *not* a base type. The actual type depends on the
platform. For i386, int64_t is a typedef for long long, on an LP64 arch as
x86-64, it's a typedef for long as longs are 64 bits.
> but I was hoping someone would be able to explain things to a bit more
> depth (e.g. rationale).
Does the above make it clearer?
Philipp
More information about the Gcc-help
mailing list