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