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
9e0ba685
Commit
9e0ba685
authored
Aug 16, 2001
by
Richard Henderson
Committed by
Richard Henderson
Aug 16, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* hashtab.c (htab_hash_string): New.
From-SVN: r44950
parent
457f49df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
libiberty/ChangeLog
+4
-0
libiberty/hashtab.c
+16
-0
No files found.
libiberty/ChangeLog
View file @
9e0ba685
2001-08-16 Richard Henderson <rth@redhat.com>
* hashtab.c (htab_hash_string): New.
2001-08-13 Andrew Cagney <ac131313@redhat.com>
* floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
...
...
libiberty/hashtab.c
View file @
9e0ba685
...
...
@@ -561,3 +561,19 @@ htab_collisions (htab)
return
(
double
)
htab
->
collisions
/
(
double
)
htab
->
searches
;
}
/* Hash P as a null-terminated string. */
hashval_t
htab_hash_string
(
p
)
const
PTR
p
;
{
const
unsigned
char
*
str
=
(
const
unsigned
char
*
)
p
;
hashval_t
r
=
0
;
unsigned
char
c
;
while
((
c
=
*
str
++
)
!=
0
)
r
=
r
*
67
+
c
-
113
;
return
r
;
}
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