View Single Post
  #1  
Old 10-17-2012, 10:20 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default Calculation Speed vs Efficiency

I'm trying to tweak a code segment I'm working on and can't find a reference as to what method is 'more proper' to use.

Which method is more efficient in terms of clock cycles?

Code:
x += y;
x /= 10;
or

Code:
x = (x + y) / 10;
Thanks!
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote