Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bobbylarrybobby
· 4y ago · 0 comments
Were square roots really so slow that integer addition in a loop was faster??
Comments
[–]
the2and7
4y ago
68000 processor on the Mac didn't support floating point operations.
[–]
dahfizz
4y ago
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.