aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_map.c
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-06-18 15:19:20 +0200
committerBjörn-Egil Dahlberg <[email protected]>2015-06-24 16:22:30 +0200
commit287db3cf7ecb1bb23664cf872508675461a4be56 (patch)
treebe8e79222d3c3be78c1892c750a14ae13dd94fc3 /erts/emulator/beam/erl_map.c
parent17bcc73e511eee06ca64d51edb401f8340fe9abc (diff)
downloadotp-287db3cf7ecb1bb23664cf872508675461a4be56.tar.gz
otp-287db3cf7ecb1bb23664cf872508675461a4be56.tar.bz2
otp-287db3cf7ecb1bb23664cf872508675461a4be56.zip
erts: Remove halfword heap relative comparisions
* Removed cmp_rel, cmp_rel_term and eq_rel
Diffstat (limited to 'erts/emulator/beam/erl_map.c')
-rw-r--r--erts/emulator/beam/erl_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_map.c b/erts/emulator/beam/erl_map.c
index 500234c436..8f376fe595 100644
--- a/erts/emulator/beam/erl_map.c
+++ b/erts/emulator/beam/erl_map.c
@@ -197,7 +197,7 @@ erts_maps_get(Eterm key, Eterm map)
}
for (i = 0; i < n; i++) {
- if (eq_rel(ks[i], map_base, key, NULL)) {
+ if (EQ(ks[i], key)) {
return &vs[i];
}
}
@@ -2020,7 +2020,7 @@ erts_hashmap_get(Uint32 hx, Eterm key, Eterm node)
if (is_list(node)) { /* LEAF NODE [K|V] */
ptr = list_val(node);
- res = eq_rel(CAR(ptr), map_base, key, NULL) ? &(CDR(ptr)) : NULL;
+ res = EQ(CAR(ptr), key) ? &(CDR(ptr)) : NULL;
break;
}