From: Gary Wright Date: 2009-07-25T06:37:47+09:00 Subject: Re: Problem with hash (again) On Jul 24, 2009, at 4:45 PM, Thomas Chust wrote: > > some_large_value & (2 ** (8 * 0.size - 2) - 1) Bitwise AND is better than my integer division suggestion in a previous post but then again they are probably all slow with a Bignum operand. Gary Wright