Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
01e00495
Commit
01e00495
authored
Jul 09, 2008
by
Michael Beck
Browse files
- fixed warnings
[r20383]
parent
1d3bce5a
Changes
4
Hide whitespace changes
Inline
Side-by-side
ir/adt/hashset.c
View file @
01e00495
...
...
@@ -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
...
...
ir/ir/irlinkednodemap.c
View file @
01e00495
...
...
@@ -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
;
...
...
ir/ir/irlinkednodeset.c
View file @
01e00495
...
...
@@ -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
;
...
...
ir/ir/valueset.c
View file @
01e00495
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment