TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: HERMAN SCHONFELD
from: DANIAL GIBSON
date: 1997-04-03 22:52:00
subject: Re: Video

HS>DM>Are you SURE that two shift operations followed by an addition is 
eally
HS>DM>faster than the hardware-optimized integer multiplication?
HS>DM>Perhaps on an 8086... but on an 80486?  Probably not...
HS>Bit shifting will ALWAYS be faster than multiplying.
Yeah, but what about the other stuff that goes along with it too. Like
the mov's and the extra add. On the newer chips it would probably be
about the same, but then again, on the newer chips, you have 120 million
cycles a second, compared to about 66 million. Plus the instructions
take less cycles. I don't think you'd really notice the difference using
a simple multiply vs. the shifts. Unless you did a _LOT_ of them. Still,
personally, I use the shifting method cause it at least _seems_ faster.
And it looks cooler. :)
Danial.
___
 X SLMR 2.1a X 
--- Maximus/2 3.00
---------------
* Origin: Hunter Connection OS/2 BBS 24hrs (049) 57-1801 (3:622/403)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.