Do away with 32 bit divisions for bend calculations to save execution time

Really minor thing this time in the wake of pull request #44: replace three instances of int32_t divide operations with multiply and shift.