does
if(x<=20){
}
use more processing power than
if(x<21){
}
?
Printable View
does
if(x<=20){
}
use more processing power than
if(x<21){
}
?
I doubt it; they are basically the same thing as far as the underlying microcode for the instruction is concerned. For integers at least.
AND and OR operations are performed on the bits that make up the number to determine which one is greater. They will take up the same amount of processing power because the determination for < and <= are all included within the circuitry. So I had studied...
Let me consult my logic design book (mano & kime)
Bollox its at home.
Never mind.