Displaying 2 results from an estimated 2 matches for "6ae904fc".
2017 Jan 10
4
Default hashing function for integers (DenseMapInfo.h)
...could be improved. But to know if it's worth it, I would like to know if having a better hash for integer types would benefit LLVM.
François Fayard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170110/6ae904fc/attachment.html>
2017 Jan 09
4
Default hashing function for integers (DenseMapInfo.h)
Hi,
I’ve been looking at Chandler Carruth talks about internal data structures for LLVM in order to implement my own library. That’s how I ended up looking at the internals of DenseMap and the default hash functions defined in DenseMapInfo.
I have been very surprised by the hash function used for integers which is hash(k) = 37 * k. This kind of hashing function does not change the lowest bits of