aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_hashmap.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2015-02-11 21:50:25 +0100
committerBjörn-Egil Dahlberg <[email protected]>2015-03-12 19:15:23 +0100
commit442c9b4d11a62c55b46ffb25f27b5ec5fb3adda7 (patch)
tree1167524b8fea2e3299cfdc33b97da180d784805e /erts/emulator/beam/erl_hashmap.h
parentaad7d6fe4e1e9fe086d275ab3ea34c5285cc8edb (diff)
downloadotp-442c9b4d11a62c55b46ffb25f27b5ec5fb3adda7.tar.gz
otp-442c9b4d11a62c55b46ffb25f27b5ec5fb3adda7.tar.bz2
otp-442c9b4d11a62c55b46ffb25f27b5ec5fb3adda7.zip
erts: First recursive version of hashmap compare
Diffstat (limited to 'erts/emulator/beam/erl_hashmap.h')
-rw-r--r--erts/emulator/beam/erl_hashmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_hashmap.h b/erts/emulator/beam/erl_hashmap.h
index 4ef795b11e..4a4163bce9 100644
--- a/erts/emulator/beam/erl_hashmap.h
+++ b/erts/emulator/beam/erl_hashmap.h
@@ -24,11 +24,13 @@
#include "sys.h"
Eterm erts_hashmap_get(Eterm key, Eterm map);
+int hashmap_cmp(Eterm a, Eterm b);
/* erl_term.h stuff */
#define make_hashmap(x) make_boxed((Eterm*)(x))
#define make_hashmap_rel make_boxed_rel
#define is_hashmap(x) (is_boxed((x)) && is_hashmap_header(*boxed_val((x))))
+#define is_hashmap_rel(RTERM,BASE) is_hashmap(rterm2wterm(RTERM,BASE))
#define is_hashmap_header(x) (((x) & (_TAG_HEADER_MASK)) == _TAG_HEADER_HASHMAP)
#define hashmap_val(x) _unchecked_boxed_val((x))
#define hashmap_val_rel(RTERM, BASE) hashmap_val(rterm2wterm(RTERM, BASE))