aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_process_dict.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-10-10 15:05:26 +0200
committerSverker Eriksson <[email protected]>2016-10-10 15:10:57 +0200
commitb1070efa22f18e19bc7c55fd69e0796f48abf256 (patch)
tree479494b3bdceef5378b81f90da438cd270bc76ef /erts/emulator/beam/erl_process_dict.c
parentc5a826b3d3a80726473fd9c2a7bea58b4363a993 (diff)
downloadotp-b1070efa22f18e19bc7c55fd69e0796f48abf256.tar.gz
otp-b1070efa22f18e19bc7c55fd69e0796f48abf256.tar.bz2
otp-b1070efa22f18e19bc7c55fd69e0796f48abf256.zip
erts: Refactor process dict hash pre-calculation
with new function erts_pd_make_hx()
Diffstat (limited to 'erts/emulator/beam/erl_process_dict.c')
-rw-r--r--erts/emulator/beam/erl_process_dict.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_process_dict.c b/erts/emulator/beam/erl_process_dict.c
index e05d81158d..d443fff22c 100644
--- a/erts/emulator/beam/erl_process_dict.c
+++ b/erts/emulator/beam/erl_process_dict.c
@@ -408,6 +408,11 @@ static void pd_hash_erase_all(Process *p)
}
}
+Uint32 erts_pd_make_hx(Eterm key)
+{
+ return MAKE_HASH(key);
+}
+
Eterm erts_pd_hash_get_with_hx(Process *p, Uint32 hx, Eterm id)
{
unsigned int hval;