Don't ask to ask, just ask | |
PerlMonks |
Re: A better mod (%) operator?by John M. Dlugosz (Monsignor) |
on Jul 09, 2002 at 20:10 UTC ( [id://180587]=note: print w/replies, xml ) | Need Help?? |
That's bugged me too, especially in the old days when a division took 130 clocks at 12MHz. I hope that the optomizer can take care of it. So, I do the common expressions into temp variables, and then do both / and % with identical parameters on concecutive lines.
In Section
Meditations
|
|