Divide a number by a power of two using bit right shift