in reply to Re^3: Implementing a signed/sign-propagating right bitwise shift
in thread Implementing a signed/sign-propagating right bitwise shift

Thanks; I get it now. The reason I had the loop in the first place is because that was how I had to work the math in my head: one step at a time, like a monkey with a scratch pad. (I also originally had a print statement at every step of the loop to be sure that it was doing what I thought it was doing!)
  • Comment on Re^4: Implementing a signed/sign-propagating right bitwise shift