Shifts vs Additions

Reply

Join Date: Feb 2006
Posts: 1
Reputation: nectodn is an unknown quantity at this point 
Solved Threads: 0
nectodn nectodn is offline Offline
Newbie Poster

Shifts vs Additions

 
0
  #1
Feb 12th, 2006
I was told that shifts were faster then additions but the pdf
"How to optimize for the PentiumĀ® microprocessors" from
http://www.agner.org/assem/ says that shifts should be avoided on
Pentinum 4 and additions should be used instead. Which is right?
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,567
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 707
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Shifts vs Additions

 
0
  #2
Mar 7th, 2006
>Which is right?
Both. Any decent processor will show that shifts are faster, but the Pentium 4 is gimped in this case.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Assembly Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC