Ahh, ok. Fair enough, but I do have to say that I consider a hash of size
1 to be kind of useless, so even then I think the right approach is:
> I suppose an alternative in this case is to special-case above
> calculation to peg the minimum at 1.
Yup. It needs a special case _somewhere_, and I suspect it's clearer to
just make the special case be where the issue is.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/