diff options
Diffstat (limited to 'src/map.hff')
| -rw-r--r-- | src/map.hff | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map.hff b/src/map.hff index 87d0506..d7883dd 100644 --- a/src/map.hff +++ b/src/map.hff @@ -1,4 +1,5 @@ -import "all.hff"; +import "common.hff"; +import "util.hff"; // KTraits: // :hash(K) u32 @@ -32,6 +33,8 @@ struct Map<K, V, KTraits> { } fn _reallockvb(self *Map) void { + // keys, vals, bitmap are in a contiguous memory allocation, + // XXX ^ alignment let p = xcalloc((self.N * (sizeof K + sizeof V)) + (self.N / 8), 1); self.keys = p; self.vals = as(*V)(self.keys + self.N); |