Sujet : Re: Good hash for pointers
De : already5chosen (at) *nospam* yahoo.com (Michael S)
Groupes : comp.lang.cDate : 24. May 2024, 17:27:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240524192748.000046ab@yahoo.com>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32)
On Fri, 24 May 2024 17:10:45 +0100
Malcolm McLean <
malcolm.arthur.mclean@gmail.com> wrote:
>
So if we use uintptr_t the code might break.
And if we use unsigned long we have to assume maximum 32 bits.
However it's unlikely anyone will have an xml file with more than a
billion nodes.
It's not about # of nodes. It's about good hash functions tend to use
64-bit multiplication.