Re: int64_t == long long

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Yang Zhang (yanghatespam@xxxxxxxxx) [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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux