Revert "lib/int_sqrt.c: optimize square root algorithm"

This reverts commit 48901aabf139bd92c5ff043f987d83b49965aebe.