Advertisement

How fast is a /2 ?

Started by May 19, 2000 01:11 AM
10 comments, last by Marauderz 24 years, 7 months ago
Unless you''re using a 10 year old compiler, /2 and >>1 are identical.
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