This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: std::collate hash() still broken
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: AWLaFramboise at aol dot com
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Sun, 10 Feb 2002 13:32:25 +0100
- Subject: Re: std::collate hash() still broken
- References: <138.92ad0a0.2997bf57@aol.com>
AWLaFramboise@aol.com wrote:
>Now.. whether 7 is the number to use or not.. i have no idea.. I've seen 5 and 6 used as well..
>but rot7 was what was here before so..
I see. I'm not an hashing expert either, but what you are saying sounds ok to me, after cross checking with a couple of other implementations too.
Personally, I would like to see cited in a comment a relevant piece of literature on "rotary hashing", where it is at least explained why __val << X implies that the following __val >> Y must have Y = digits - X.
Thanks,
Paolo.