Fast integer division with divisor not known at compile time. To be used primarily in CUDA kernels.