[Mplayer-cvslog] CVS: main/postproc rgb2rgb.c,1.25,1.26 rgb2rgb.h,1.11,1.12

Michael Niedermayer michaelni at gmx.at
Mon Nov 5 20:07:14 CET 2001


Hi

On Monday 05 November 2001 19:52, Nick Kurshev wrote:
> So you really guess that width and height can be negative?
if u call the function it might be...
rotfl

> Any optimization manual says that unsigned values are preferdly agains
> signed: From K7 optimization manual:
> (Publication # 22007 Rev: D Number 243192 Issue Date: August 1999 (pages 21
> and below): If possible, use unsigned integer types over signed integer
> types. The unsigned types convey to the compiler that data cannot be
> negative, which allows some optimizations not possible with signed and
> potentially negative data.
yes, divisions are faster with unsigned stuff

unsigned int x=y; x/2 -> shr $1, %eax or something
int x=y; x/2 -> something longer (sar $1, %eax doesnt work because of 
different rounding)

ill change them to unsigned int

Michael



More information about the MPlayer-cvslog mailing list