mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
wow, the link was already broken :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32963 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
38742b9603
commit
41a4429f65
@ -36,7 +36,7 @@ static unsigned HashString(const char *Start, const char *End) {
|
||||
// Bernstein hash function.
|
||||
unsigned int Result = 0;
|
||||
// TODO: investigate whether a modified bernstein hash function performs
|
||||
// better: http://eternallyconfuzzled.com/tuts/hashing.html#existing
|
||||
// better: http://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_hashing.aspx
|
||||
// X*33+c -> X*33^c
|
||||
while (Start != End)
|
||||
Result = Result * 33 + *Start++;
|
||||
|
@ -36,7 +36,7 @@ static unsigned HashString(const char *Start, const char *End) {
|
||||
// Bernstein hash function.
|
||||
unsigned int Result = 0;
|
||||
// TODO: investigate whether a modified bernstein hash function performs
|
||||
// better: http://eternallyconfuzzled.com/tuts/hashing.html#existing
|
||||
// better: http://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_hashing.aspx
|
||||
// X*33+c -> X*33^c
|
||||
while (Start != End)
|
||||
Result = Result * 33 + *Start++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user