Thread
:
Calculation Speed vs Efficiency
View Single Post
#
1
10-17-2012, 10:20 PM
Uleat
Developer
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
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
Uleat
View Public Profile
Send a private message to Uleat
Find all posts by Uleat