aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_hashmap.h
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-02-19 16:53:32 +0100
committerBjörn-Egil Dahlberg <[email protected]>2015-03-12 19:15:26 +0100
commit903740ac57b00d404f430876b82cb21e0bb684a3 (patch)
tree1a5bfcf2ae2589ed5c8e50a848e2b708d907dd36 /erts/emulator/beam/erl_hashmap.h
parent9cfaa729d7319ede30f62ffaaf82eb10fbaf8a60 (diff)
downloadotp-903740ac57b00d404f430876b82cb21e0bb684a3.tar.gz
otp-903740ac57b00d404f430876b82cb21e0bb684a3.tar.bz2
otp-903740ac57b00d404f430876b82cb21e0bb684a3.zip
erts: Move hashmap:to_list/1, keys/1 and values/1 to maps
Diffstat (limited to 'erts/emulator/beam/erl_hashmap.h')
-rw-r--r--erts/emulator/beam/erl_hashmap.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/erts/emulator/beam/erl_hashmap.h b/erts/emulator/beam/erl_hashmap.h
index b5fbc636e6..5a9aa05f61 100644
--- a/erts/emulator/beam/erl_hashmap.h
+++ b/erts/emulator/beam/erl_hashmap.h
@@ -25,9 +25,6 @@
#include "erl_term.h"
Eterm erts_hashmap_get(Eterm key, Eterm map);
-struct ErtsWStack_;
-void hashmap_iterator_init(struct ErtsWStack_* s, Eterm node);
-Eterm* hashmap_iterator_next(struct ErtsWStack_* s);
int hashmap_key_hash_cmp(Eterm* ap, Eterm* bp);
Eterm erts_hashmap_from_array(Process *p, Eterm *leafs, Uint n);
@@ -46,18 +43,13 @@ Uint32 hashmap_bitcount(Uint32 x);
* node :: leaf | array | bitmap
* head
*/
-
-/* the head-node is a bitmap or array with an untagged size */
-
typedef struct hashmap_head_s {
Eterm thing_word;
Uint size;
Eterm items[1];
} hashmap_head_t;
-#define hashmap_size(x) (((hashmap_head_t*) hashmap_val(x))->size)
-#define hashmap_size_rel(RTERM, BASE) hashmap_size(rterm2wterm(RTERM, BASE))
-
+
/* thing_word tagscheme
* Need two bits for map subtags