[MPlayer-dev-eng] [PATCH] improving MP3 detection

Zoltan Hidvegi mplayer at hzoli.2y.net
Thu Sep 9 22:16:22 CEST 2004


> On 64bit long is 64bit? Not 32 and 64 is long long?
> Just curious.
> Torinthiel

That's right, long is 64-bit on every 64-bit platform I know, the same
as long long, although there is nothing in the standard which would
require this.  So you have to be careful when you use long, as its
size depends on the platform.  On some old 16-bit platforms int was
16-bit and long was 32-bit, and int was the most efficient type back
then, but now it's long.  Perhaps one day we will have 128-bit
machines, where a 128-bit long long will be the most efficient type to
use :-(.  I think C99 has some typedefs like int_fast32_t or
something, which is supposed to be the most efficient signed integral
type that can represent any 32-bit integer.  But e.g. on AIX 5.1
int_fast32_t is defined as int32_t even for 64-bit compiles, which I
would consider a bug (glibc gets it right), so at the moment, long is
the most reliable way to get the most efficient integral type.

Zoli




More information about the MPlayer-dev-eng mailing list