How fast is a /2 ?

Started by
10 comments, last by Marauderz 23 years, 11 months ago
Unless you''re using a 10 year old compiler, /2 and >>1 are identical.
Advertisement
floating point multiply = 3 instruction cycles
floating point divide = 17 instruction cycles (if FPU is set in good modus)

I don''t remember the integer speed, but probably slower than the floating!!! This is exactly where the FPU power lies!
Integers are only faster with shifting and adding!

So (correct me if I''m wrong) if you dont have a fractional part...floating point is the way to go!

This topic is closed to new replies.

Advertisement