[MPlayer-dev-eng] [PATCH] fix scaler on 64 bit

Michael Niedermayer michaelni at gmx.at
Sat May 6 13:19:45 CEST 2006


Hi

On Sat, May 06, 2006 at 11:57:53AM +0200, joerg at britannica.bec.de wrote:
> On Fri, May 05, 2006 at 05:56:06PM +0200, Michael Niedermayer wrote:
> > * intptr_t IIRC is optional not mandatory part of the C standard
> > * intptr_t represents a c ptr, which may or may not be the same as esp
> >   (could be segment+offset or something insane like that)
> 
> It is mandatory part of C99. intptr_t the smallest integer type big
> enough to hold a pointer, so stupid platforms like DOS can use 32bit
> values for it.

C99 FDIS:

7.18.1.4 Integer types capable of holding object pointers
The following type designates a signed integer type with the property that any valid
pointer to void can be converted to this type, then converted back to pointer to void,
and the result will compare equal to the original pointer:
       intptr_t
The following type designates an unsigned integer type with the property that any valid
pointer to void can be converted to this type, then converted back to pointer to void,
and the result will compare equal to the original pointer:
       uintptr_t
These types are optional.

[...]
-- 
Michael

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is




More information about the MPlayer-dev-eng mailing list