ive got to multiply a variable by 25 and i was wondering which of these 2 would be quicker
x = x*25
or
x = x<<4 + x<<3 + x
I have a suspicion that the latter will be quicker, but take up more code space.
ive got to multiply a variable by 25 and i was wondering which of these 2 would be quicker
x = x*25
or
x = x<<4 + x<<3 + x
I have a suspicion that the latter will be quicker, but take up more code space.
"I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams
Bookmarks