lib/int_sqrt.c: Further optimise square root algorithm

- Inline function
- Register variables
- Minor code tweak