aboutsummaryrefslogtreecommitdiff
path: root/gas/hash.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1995-01-20 22:14:27 +0000
committerKen Raeburn <raeburn@cygnus>1995-01-20 22:14:27 +0000
commitb2683e0914903c870e5782e1cf8501a5ac291a0a (patch)
tree74edb87070144eb46a961833387b36c1217a115e /gas/hash.c
parent04dc16b76b5164ce00213f0822234676d365eb5d (diff)
downloadgdb-b2683e0914903c870e5782e1cf8501a5ac291a0a.zip
gdb-b2683e0914903c870e5782e1cf8501a5ac291a0a.tar.gz
gdb-b2683e0914903c870e5782e1cf8501a5ac291a0a.tar.bz2
back out new hash routine
Diffstat (limited to 'gas/hash.c')
-rw-r--r--gas/hash.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/hash.c b/gas/hash.c
index e8894f8..276b8f5 100644
--- a/gas/hash.c
+++ b/gas/hash.c
@@ -738,7 +738,9 @@ hash_code (handle, string)
struct hash_control *handle;
const char *string;
{
-#if 0
+#if 1 /* There seems to be some interesting property of this function
+ that prevents the bfd version below from being an adequate
+ substitute. @@ Figure out what this property is! */
long h; /* hash code built here */
long c; /* each character lands here */
int n; /* Amount to shift h by */
@@ -752,6 +754,7 @@ hash_code (handle, string)
}
return (h & handle->hash_mask);
#else
+ /* from bfd */
unsigned long h = 0;
unsigned int len = 0;
unsigned int c;