Mail Archives: djgpp/1996/07/13/09:16:57
Tom Wheeley <tomw AT tsys DOT demon DOT co DOT uk> wrote:
>Although I've never used setpixel routines, I was always under the impression
>that (x + y << 8 + y << 6) is faster than (x + 320 * y).
>.splitbung
>--
>* TQ 1.0 * The 'Just So Quotes'.
>OJ's WWW address is http://////////
I think this is true of older processors, but on a 486, a
well designed mul instruction is just as fast (or faster?),
depending on the value of the operands.
Don't know about the Pentium though, since simple
instructions can be useful for keeping both Pipes going.
-Optimising is a hell of a thing...
- Raw text -