lua-users home
lua-l archive

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

> long long is guaranteed to exist by C99. uint64_t is not -- if a
> platform doesn't offer a type that's EXACTLY 64 bits, uint64_t must be
> left undefined. (There's uint64_least_t for the smallest type >= 64
> bits, and uint64_fast_t for the compiler's opinion of the fastest type
> that's at least 64 bits. These will be defined if a machine has e.g.
> 72-bit registers.)

Moreover, long long is supported by several compilers that are not
C99 (even Microsoft supports it), and it is better integrated with the
language in general (e.g., length modifiers in formats).

-- Roberto