After code with the modulus operator (%) is compiled how does the CPU process it? I mean does it have some sort of efficient way of makeing x % y take up less processing power than if we just put it in a loop that calcualtes it? Same thing with powers. If we could (I don't believe we can) do this: 4^50 would it be processed the same as
for(i = 0; i<50; i++)
{
4 * 4;
}
?
-Bones
for(i = 0; i<50; i++)
{
4 * 4;
}
?
-Bones