[XviD-devel] int32_t etc.

suxen_drol xvid-devel@xvid.org
Mon, 03 Feb 2003 11:18:03 +1100


On Sun, 2 Feb 2003 23:31:05 +0100 (CET) Christoph Lampert <chl@math.uni-bonn.de> wrote:

> 
> Hi,
> 
> can one of the Windows users check if you have C99 header files
> with typedefs like 
> 
> uint_fast32_t
> 
> instead of just 
> 
> uint32_t

microsoft visual studio v6 does not define uint32_t or uint_fast32_t.

> Those are by definition "the fastest unsigned type with at least 32bit"
> and since we almost never rely on "exactly 32 bits", but just on "more
> than 16", we could switch at many places. This would be better for
> upcoming 64bit machines, and also it's better style.

we really only need to worry about uint8_t and uint16_t:
- uint8_t is only used for pixel-space stuff
- uint16_t is only used for dct-space stuff

uint32_t should be replaced (almost) everywhere with plain int.

-- pete; life is like a box of ammo