Fixed distance fractional computation

Forgot to right shift 4 bits (to get the value of the upper 4 bits of a
byte) when multiplying with scale factor (1/16 m)