3 ms·
Were square roots really so slow that integer addition in a loop was faster??
Were square roots really so slow that integer addition in a loop was faster??
68000 processor on the Mac didn't support floating point operations.
I wouldn't be surprised if that is still the case. Rule of thumb is that sqrt is on the order of 10x as expensive as integer addition, though this obviously depends on a lot of factors.