lib/int_sqrt.c: optimize square root algorithm
Input: Send events one packet at a time
New overclocking based on work by @ktoonsez