aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Support/CStringMap.cpp2
-rw-r--r--lib/Support/StringMap.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/CStringMap.cpp b/lib/Support/CStringMap.cpp
index 6cd3745946..31b50d2f15 100644
--- a/lib/Support/CStringMap.cpp
+++ b/lib/Support/CStringMap.cpp
@@ -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++;
diff --git a/lib/Support/StringMap.cpp b/lib/Support/StringMap.cpp
index 6cd3745946..31b50d2f15 100644
--- a/lib/Support/StringMap.cpp
+++ b/lib/Support/StringMap.cpp
@@ -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++;