Improve division code generation.

Some improvements to divide code, such as handling 64 bit versions, and multiply/shift cases.