fixed hw detection bug
int_division for 16-bit/16-bit optimized