Why multiply and divide when you can shift? Multiplication and division are processor intensive. A quick way to divide by 2^n is to use >>n. A quick way to multiply by 2^n is to use <<n.