Re: [Mesa-dev] [PATCH] util: Change the pointer hashing function

2017-05-18 Thread Eric Anholt
Thomas Helland writes: > Use our knowledge that pointers are at least 4 byte aligned to remove > the useless digits. Then shift by 6, 10, and 14 bits and add this to > the original pointer, effectively folding in the entropy of the higher > bits of the pointer into a 4-bit section. Stopping at 14

Re: [Mesa-dev] [PATCH] util: Change the pointer hashing function

2017-05-18 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Thu, May 18, 2017 at 9:39 PM, Thomas Helland wrote: > Use our knowledge that pointers are at least 4 byte aligned to remove > the useless digits. Then shift by 6, 10, and 14 bits and add this to > the original pointer, effectively folding in the entropy of the

[Mesa-dev] [PATCH] util: Change the pointer hashing function

2017-05-18 Thread Thomas Helland
Use our knowledge that pointers are at least 4 byte aligned to remove the useless digits. Then shift by 6, 10, and 14 bits and add this to the original pointer, effectively folding in the entropy of the higher bits of the pointer into a 4-bit section. Stopping at 14 means we can add the entropy fro