954,479 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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?

nectodn
Newbie Poster
1 post since Feb 2006
Reputation Points: 10
Solved Threads: 0
 

>Which is right?
Both. Any decent processor will show that shifts are faster, but the Pentium 4 is gimped in this case.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You