|
Re: Which is faster?
I think it depends on the processor. Fancy pipelined processors don't do well with branches and if statements. I'm pretty sure the PIC isn't that fancy. The only real question is if it can complete a divide in one clock cycle or not. I'd bet on the latter being faster, though. The branch instruction is more likely to delay the processor more than a simple integer divide. Either one is going to be pretty darned fast, though.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.
Lone Star Regional Troubleshooter
|