back out new hash routine
This commit is contained in:
parent
04dc16b76b
commit
b2683e0914
|
@ -1,3 +1,7 @@
|
||||||
|
Fri Jan 20 17:07:31 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
|
||||||
|
|
||||||
|
* hash.c (hash_code): Undo last change.
|
||||||
|
|
||||||
Thu Jan 19 14:49:47 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
|
Thu Jan 19 14:49:47 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
|
||||||
|
|
||||||
* config/tc-alpha.c (alpha_ip): Initialize local variables to keep
|
* config/tc-alpha.c (alpha_ip): Initialize local variables to keep
|
||||||
|
@ -16,6 +20,8 @@ Thu Jan 19 14:49:47 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
|
||||||
* flonum-konst.c (dummy1): Return void.
|
* flonum-konst.c (dummy1): Return void.
|
||||||
* config/tc-vax.c (md_assemble): Remove two comparisons of
|
* config/tc-vax.c (md_assemble): Remove two comparisons of
|
||||||
unsigned numbers versus zero.
|
unsigned numbers versus zero.
|
||||||
|
* as.h (bcopy): If neither memcpy nor bcopy is defined as a macro,
|
||||||
|
define to use memcpy.
|
||||||
|
|
||||||
* config/tc-alpha.c, config/alpha-opcode.h: Revert 2 June changes.
|
* config/tc-alpha.c, config/alpha-opcode.h: Revert 2 June changes.
|
||||||
Turns out we never got the assignment done after all.
|
Turns out we never got the assignment done after all.
|
||||||
|
|
|
@ -738,7 +738,9 @@ hash_code (handle, string)
|
||||||
struct hash_control *handle;
|
struct hash_control *handle;
|
||||||
const char *string;
|
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 h; /* hash code built here */
|
||||||
long c; /* each character lands here */
|
long c; /* each character lands here */
|
||||||
int n; /* Amount to shift h by */
|
int n; /* Amount to shift h by */
|
||||||
|
@ -752,6 +754,7 @@ hash_code (handle, string)
|
||||||
}
|
}
|
||||||
return (h & handle->hash_mask);
|
return (h & handle->hash_mask);
|
||||||
#else
|
#else
|
||||||
|
/* from bfd */
|
||||||
unsigned long h = 0;
|
unsigned long h = 0;
|
||||||
unsigned int len = 0;
|
unsigned int len = 0;
|
||||||
unsigned int c;
|
unsigned int c;
|
||||||
|
|
Loading…
Reference in New Issue