> 2002-07-05 18:54:15+0200, Patrick Schaaf <[EMAIL PROTECTED]> ->
>> 
>> - make the hash bucket count at least individible by 2. This should go
>>   as a strong suggestion into the documentation, and should be
>>   implemented in the default initialization code. Anybody volunteering
>>   for one or the other? I'll do the code part, but I won't do the
>>   docs.
> 
> Well, I think we even can force people to use an odd count.
> 
> if (hashsize%2 == 0)
>       hashsize--;
> 
> 
> -- 
> /Joakim Axelsson A.K.A Gozem@EFnet & OPN

Just so you don't underestimate a requirement ... :-)

if ((hashsize & 1) == 0)
        hashsize++;

(assume we are checking positive numbers ;-)

-- 
-Cheers
-Andrew

MS ... if only he hadn't been hang gliding!


Reply via email to