GHC Trac Home
GHC Home
Joining In
Working on GHC
Mailing Lists & IRC
GHC Contributors
Documentation
Status Reports
Repositories
Building Guide
Commentary
Debugging
View Tickets
All Bugs
All Tasks
All Feature Req's
All Proposals
My Tickets
Tickets I Created
By Milestone
By OS
By Architecture
Patches for review
Create Ticket
New Bug
New Task
New Feature Req
Wiki
Title Index
Recent Changes
Wiki Notes
Search:
Login
Help/Guide
About Trac
Register
Forgot your password?
Preferences
Wiki
Timeline
Roadmap
View Tickets
Dashboard
Blog
Context Navigation
Back to Ticket #3969
Ticket #3969
: c_hash.c
File c_hash.c,
157 bytes
(added by milan,
3 years
ago)
Line
1
#include "c_hash.h"
2
3
long
c_hash
(
const
char
*
str
,
long
len
)
{
4
long
hash
=
0
;
5
6
for
(;
len
;
--
len
)
{
7
hash
=
(
hash
*
33
)
^
*
str
++
;
8
}
9
10
return
hash
;
11
}
Download in other formats:
Original Format