vorbisdec: ensure FASTDIV denominator is never 1
In both usages of FASTDIV the denominator might be 1. Using a branch could make the function slower than using a normal division. Both denominator and numerator can be multiplied by 2 safely and using shifts is faster than using a branch.
Showing
Please
register
or
sign in
to comment