From: Mental Guy Date: 2008-01-23T07:39:42+09:00 Subject: Re: Circular shift Lloyd Linklater wrote: > Don't forget that the high order bit must be placed in the low order bit > position to fulfill what the guy asked for. I didn't. Three one-bit circular shifts is the same as one three-bit circular shift. One-at-a-time: 10000110 1 0000110 0000110 1 00001101 0 0001101 0001101 0 00011010 0 0011010 0011010 0 00110100 All at once: 10000110 100 00110 00110 100 00110100 -mental -- Posted via http://www.ruby-forum.com/.