[MPlayer-dev-eng] [PATCH] More accurate af_volume

Alex Beregszaszi alex at fsn.hu
Mon Feb 21 17:35:16 CET 2005


Organization: Free Software Network (http://www.fsn.hu/)
X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; powerpc-unknown-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hi,

> > > >Is there an architecture where this is not the case?
> > > 
> > > all ILP64 OS/arch. Alpha with almost any OSes is one.
> > > 
> > > At least Solaris 9 on Sparc V9 and Linux on Itanium seems
> > > to default to I32LP64...
> > 
> > This is all non-gcc. On gcc, int is always 32bit, for good reason.
> > If you make int any bigger, there's at least one size (either 16bit
> > or 32bit) that can't exist at all within the standard types.. this
> > is an unfortunate limitation of the C language.
> 
> That of course makes sense, but i think we should still not assume it
> is always 32bit when writing code and using the standard type int.

the appropriate inttypes should be used wherever needed (int32_t, etc),
this solves the confusion, or at least only one side has to be fixed,
the inttypes.h (or stdint.h in later carnations)

-- 
Alex Beregszaszi 			e-mail: alex at fsn.hu
Free Software Network			cell: +36 70 3144424




More information about the MPlayer-dev-eng mailing list