ldiv: Make rem < 0 if a < 0.