From: Mental Guy Date: 2008-01-23T06:24:29+09:00 Subject: Re: Circular shift Mental Guy wrote: > def shift_left_width(value, register_width, bits) > ( value << bits ) & bitmask(width) > end Of course, this should be: def shift_left_width(value, register_width, bits ( value << bits ) & bitmask(register_width) end -mental -- Posted via http://www.ruby-forum.com/.