diff options
author | George Spelvin <[email protected]> | 2016-05-26 23:00:23 -0400 |
---|---|---|
committer | George Spelvin <[email protected]> | 2016-05-28 15:42:51 -0400 |
commit | ef703f49a6c5b909a85149bb6625c4ed0d697186 (patch) | |
tree | 4207abfae54812ba02e76ad6450ce4d0facd6b41 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 92d567740f2ab5937b2c23bee94ea4b284bb1f98 (diff) |
Eliminate bad hash multipliers from hash_32() and hash_64()
The "simplified" prime multipliers made very bad hash functions, so get rid
of them. This completes the work of 689de1d6ca.
To avoid the inefficiency which was the motivation for the "simplified"
multipliers, hash_64() on 32-bit systems is changed to use a different
algorithm. It makes two calls to hash_32() instead.
drivers/media/usb/dvb-usb-v2/af9015.c uses the old GOLDEN_RATIO_PRIME_32
for some horrible reason, so it inherits a copy of the old definition.
Signed-off-by: George Spelvin <[email protected]>
Cc: Antti Palosaari <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions