aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/map_SUITE.erl
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2013-10-15 17:21:30 +0200
committerBjörn-Egil Dahlberg <[email protected]>2014-01-28 15:56:30 +0100
commitac2954982d6089b0970798581b2230bdd1a065d5 (patch)
tree6242f496c93ad46939037c526d6523ebab8722fb /erts/emulator/test/map_SUITE.erl
parent97d087263e1836f3efb4267e3990219fe3e3c045 (diff)
downloadotp-ac2954982d6089b0970798581b2230bdd1a065d5.tar.gz
otp-ac2954982d6089b0970798581b2230bdd1a065d5.tar.bz2
otp-ac2954982d6089b0970798581b2230bdd1a065d5.zip
erts: Add Maps to erlang:phash/2 and erlang:hash/2
The hashing a map in these functions uses the same strategy as the other terms. The exception being a prime number with size so we do not get erlang:phash(#{}) -> 1 which would be the same as erlang:phash({}) and erlang:phash(<<>>). Same argument for erlang:hash/1.
Diffstat (limited to 'erts/emulator/test/map_SUITE.erl')
0 files changed, 0 insertions, 0 deletions