Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
cd22e4af
Commit
cd22e4af
authored
22 years ago
by
Jan Hubicka
Committed by
Jan Hubicka
22 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* hashtab.c (htab_expand): Fix warning.
From-SVN: r64249
parent
1aa03f38
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
libiberty/ChangeLog
+2
-0
libiberty/hashtab.c
+2
-2
No files found.
libiberty/ChangeLog
View file @
cd22e4af
2003-12-03 Jan Hubicka <jh@suse.cz>
* hashtab.c (htab_expand): Fix warning.
* hashtab.c (htab_expand): Compute the size of hashtable based
on the number of elements actually used.
(htab_traverse): Call htab_expand when table is too empty.
...
...
This diff is collapsed.
Click to expand it.
libiberty/hashtab.c
View file @
cd22e4af
...
...
@@ -376,8 +376,8 @@ htab_expand (htab)
/* Resize only when table after removal of unused elements is either
too full or too empty. */
if
((
htab
->
n_elements
-
htab
->
n_deleted
)
*
2
>
htab
->
size
||
(
htab
->
n_elements
-
htab
->
n_deleted
)
*
8
<
htab
->
size
&&
htab
->
size
>
32
)
||
(
(
htab
->
n_elements
-
htab
->
n_deleted
)
*
8
<
htab
->
size
&&
htab
->
size
>
32
)
)
nsize
=
higher_prime_number
((
htab
->
n_elements
-
htab
->
n_deleted
)
*
2
);
else
nsize
=
htab
->
size
;
...
...
This diff is collapsed.
Click to expand it.
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