integer arithmetic utility, including bitwise operations