DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Assembly (http://www.daniweb.com/forums/forum125.html)
-   -   Shifts vs Additions (http://www.daniweb.com/forums/thread39489.html)

nectodn Feb 12th, 2006 2:38 pm
Shifts vs Additions
 
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?

Narue Mar 7th, 2006 9:53 am
Re: Shifts vs Additions
 
>Which is right?
Both. Any decent processor will show that shifts are faster, but the Pentium 4 is gimped in this case.


All times are GMT -4. The time now is 2:03 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC