Commit 01e00495 authored by Michael Beck's avatar Michael Beck
Browse files

- fixed warnings

[r20383]
parent 1d3bce5a
......@@ -266,6 +266,19 @@ InsertReturnValue insert_nogrow(HashSet *self, KeyType key)
}
}
/**
* calculate shrink and enlarge limits
* @internal
*/
static INLINE
void reset_thresholds(HashSet *self)
{
self->enlarge_threshold = (size_t) HT_OCCUPANCY_FLT(self->num_buckets);
self->shrink_threshold = (size_t) HT_EMPTY_FLT(self->num_buckets);
self->consider_shrink = 0;
}
#ifndef HAVE_OWN_RESIZE
/**
* Inserts an element into a hashset under the assumption that the hashset
* contains no deleted entries and the element doesn't exist in the hashset yet.
......@@ -309,19 +322,6 @@ void insert_new(HashSet *self, unsigned hash, ValueType value)
}
}
/**
* calculate shrink and enlarge limits
* @internal
*/
static INLINE
void reset_thresholds(HashSet *self)
{
self->enlarge_threshold = (size_t) HT_OCCUPANCY_FLT(self->num_buckets);
self->shrink_threshold = (size_t) HT_EMPTY_FLT(self->num_buckets);
self->consider_shrink = 0;
}
#ifndef HAVE_OWN_RESIZE
/**
* Resize the hashset
* @internal
......
......@@ -72,10 +72,9 @@ static ir_lnk_nodemap_entry_t null_nodemap_entry;
* Resize the hashset
* @internal
*/
static INLINE
static
void resize(HashSet *self, size_t new_size)
{
size_t num_buckets = self->num_buckets;
HashSetEntry *old_entries = self->entries;
HashSetEntry *new_entries;
list_head list = self->elem_list;
......
......@@ -72,10 +72,9 @@ static ir_lnk_nodeset_entry_t null_nodeset_entry;
* Resize the hashset
* @internal
*/
static INLINE
static
void resize(HashSet *self, size_t new_size)
{
size_t num_buckets = self->num_buckets;
HashSetEntry *old_entries = self->entries;
HashSetEntry *new_entries;
list_head list = self->elem_list;
......
......@@ -69,10 +69,9 @@ static ir_valueset_entry_t null_valueset_entry;
* Resize the hashset
* @internal
*/
static INLINE
static
void resize(HashSet *self, size_t new_size)
{
size_t num_buckets = self->num_buckets;
HashSetEntry *old_entries = self->entries;
HashSetEntry *new_entries;
list_head list = self->elem_list;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment