summaryrefslogtreecommitdiffstats
path: root/linenoise
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-09-20 07:57:28 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-09-20 07:57:28 -0700
commit63feff9c54a81056c7f5cf82792602aaee199ced (patch)
tree2b6d54bcd2dac62885c9c51f2b8cdfc9cb8002af /linenoise
parent6aececdf6040e26fef0bb634e832883943a4f1d0 (diff)
downloadtxr-63feff9c54a81056c7f5cf82792602aaee199ced.tar.gz
txr-63feff9c54a81056c7f5cf82792602aaee199ced.tar.bz2
txr-63feff9c54a81056c7f5cf82792602aaee199ced.zip
hashing: take advantage of seed when hashing aggregates.
* hash.c (equal_hash): When hashing conses and ranges, perturb the seed going into the hash for the second element, rather than hashing it the same way, and then multiplying it. When hashing the elements of a vector, perturb the seed of each one by multiplying by the index. For the CHR, NUM, BGNUM, FLNUM and several types hashed like pointers, we now mix the seed into the hash.
Diffstat (limited to 'linenoise')
0 files changed, 0 insertions, 0 deletions