diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-11 11:13:27 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-11 11:13:27 +0000 |
commit | c41143fb1d63596ff2a0f6da741b4bae73b8be16 (patch) | |
tree | d70c0763693cfef7bc877f21e079986944261a5f /libgo/runtime/map.h | |
parent | eb0badc13724022c8828a55e516d0eecdc487cc3 (diff) | |
download | gcc-c41143fb1d63596ff2a0f6da741b4bae73b8be16.tar.gz |
2011-05-11 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 173647 using svnmerge
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@173652 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/runtime/map.h')
-rw-r--r-- | libgo/runtime/map.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libgo/runtime/map.h b/libgo/runtime/map.h index a0c834a54ac..40c31f82315 100644 --- a/libgo/runtime/map.h +++ b/libgo/runtime/map.h @@ -1,10 +1,11 @@ /* map.h -- the map type for Go. - Copyright 2009, 2010 The Go Authors. All rights reserved. + Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include <stddef.h> +#include <stdint.h> #include "go-type.h" @@ -38,10 +39,10 @@ struct __go_map const struct __go_map_descriptor *__descriptor; /* The number of elements in the hash table. */ - size_t __element_count; + uintptr_t __element_count; /* The number of entries in the __buckets array. */ - size_t __bucket_count; + uintptr_t __bucket_count; /* Each bucket is a pointer to a linked list of map entries. */ void **__buckets; @@ -64,13 +65,13 @@ struct __go_hash_iter all the entries in the current bucket. */ const void *next_entry; /* The bucket index of the current and next entry. */ - size_t bucket; + uintptr_t bucket; }; extern struct __go_map *__go_new_map (const struct __go_map_descriptor *, - size_t); + uintptr_t); -extern unsigned long __go_map_next_prime (unsigned long); +extern uintptr_t __go_map_next_prime (uintptr_t); extern void *__go_map_index (struct __go_map *, const void *, _Bool); |