gligli / p600fw

Teensy++ based Sequential Circuits Prophet 600 firmware remake
http://gligli.github.io/p600fw/
41 stars 23 forks source link

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

Closed polluxsynth closed 9 years ago

polluxsynth commented 10 years ago

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

polluxsynth commented 9 years ago

I still had this lying around in my repository, probably won't make much of a difference to execution speed, but at least it gets rid of a couple of 32-bit divisions.