divRoundUp divides x+y-1 by y, rounding up if the result is not whole.
This function casts x and y to int64 in order to avoid cases where
x+y would overflow int on systems where int is an int32. The result
is an int, which is safe as (x+y-1)/y should always fit, regardless
of the integer size.