 Multiplication by a constant and division by a constant can be implemented using a sequence of shifts and adds or subtracts.For example, there are several ways to multiply by 10 using only bit-shift and addition.In some cases such sequences of shifts and adds or subtracts will outperform hardware multipliers and especially dividers.