Takes the logic from Jit64 and moves it into DivUtils, so it can be reused by other backends as well.