[Ffmpeg-devel] gcc4 support & MMX fixups (from Debian) (original) (raw)
Pawel Sikora pluto
Thu Feb 2 10:36:02 CET 2006
- Previous message: [Ffmpeg-devel] gcc4 support & MMX fixups (from Debian)
- Next message: [Ffmpeg-devel] gcc4 support & MMX fixups (from Debian)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, 2 Feb 2006, Michael Niedermayer wrote:
Hi
On Thu, Feb 02, 2006 at 09:41:37AM +0100, Pawe? Sikora wrote:
I suggest we should use a sizet type for params like *stride to avoid (on x86-64) unneeded 32<->64 conversions.
no, sizet is unsigned, stride must be signed! Right, I think offt from sys/types.h is a good candidate. It's signed, on x86-32 has 32 bits, on x86-64 has 64 bits. NO! -- Data Type: offt This is an arithmetic data type used to represent file sizes. In the GNU system, this is equivalent to
fpost' or
long int'. If the source is compiled withFILEOFFSETBITS == 64' this type_ _is transparently replaced by
off64t'.
Ok, last attempt - ptrdiff_t.
C and C++ define a special type for pointer arithmetic, namely ptrdiff_t, which is a typedef of a platform-specific signed integral type. You can use a variable of type ptrdiff_t to store the result of subtracting and adding pointers.
-- to_be || !to_be == 1, to_be | ~to_be == -1
- Previous message: [Ffmpeg-devel] gcc4 support & MMX fixups (from Debian)
- Next message: [Ffmpeg-devel] gcc4 support & MMX fixups (from Debian)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]