Haha thanks for the explanation.
And to continue on this tangent, if your code is multiplying by the constant 2 (e.g. "x = z * 2") the compiler's probably going to optimize that into a shift anyway, so just keep the "* 2" to keep future human readers of the code happy.
#b0001 = 1
#b0010 = 2
#b0100 = 4
#b1000 = 8