NJ> //Screen[x+y*320] = color;
NJ> Screen[x+(y<<6)+(y<<8)] = color; /* same as above but here the
NJ> multiplication is replaced with
NJ> shifts to make it faster */
DM>Are you SURE that two shift operations followed by an addition is really
DM>faster than the hardware-optimized integer multiplication?
DM>Perhaps on an 8086... but on an 80486? Probably not...
Bit shifting will ALWAYS be faster than multiplying.
... I wish life had a scroll-back buffer.
--- Ezycom V1.48g0 01fd016b
---------------
* Origin: Fox's Lair BBS Bris Aus +61-7-38033908 V34+ Node 2 (3:640/238)
|