Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Many of the "true RISC" cpus that could dispatch 1 ALU instruction per clock cycle had instructions for accelerating division; it would do one round of division and could be called in a loop to implement a full divide.

Note that dividing by a constant does not need a divide instruction, so it's only when dividing by a variable that division is needed. Even on CISC machines of the time division instructions were so slow that programmers would go out of their way to avoid using them.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: