This conversation is derailing so I'll just wrap it up for you two. Variable red and blue shift (modes 10 and 11, respectively) both shift by the amount of consecutive zeros counted from the least significant bit. This means that integer powers of 2, aka 1 << k, will shift by k bits, and integers that aren't integer powers of 2 shift by the same amount as the smallest integer power of 2 greater than or equal to them.