From: Tilman S. <ti...@co...> - 2005-12-13 19:10:46
|
Eric Sandall [2005-12-13 11:16]: > > while (dst < dst_end) > > - *dst++ =3D (*src++ | PIXEL_SOLID_ALPHA) & (*dst | 0x00ffffff); > > + *dst =3D (*src | PIXEL_SOLID_ALPHA) & (*dst | 0x00ffffff); > > + dst++; > > + src++; > > } >=20 > Shouldn't pre-increment (e.g. ++dst) be used instead of post-increment > (e.g. dst++) as the post-increment in C, IIRC, requires the object to > be copied, incremented, and then reassigned, whereas the pre-increment > just increments without all the copying and reassigning. Since you cannot overload the ++ operator, and there are no classes and objects in C, this doesn't apply to C at all. Regards, Tilman |