diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-09-04 19:11:21 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-09-04 19:11:21 +0000 |
commit | c3c8d76890b592bf5acc1a9b7faeabd9b829dd71 (patch) | |
tree | 6358a23d0df9de73b6d5d6d3a75545ff35f05b47 /gnu/usr.bin/binutils/gas/hash.c | |
parent | 4ba440a6e788da3a64fa29b782c37150a3f5cc18 (diff) |
Merge the Cygnus 960904 sources
Diffstat (limited to 'gnu/usr.bin/binutils/gas/hash.c')
-rw-r--r-- | gnu/usr.bin/binutils/gas/hash.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gnu/usr.bin/binutils/gas/hash.c b/gnu/usr.bin/binutils/gas/hash.c index b773caa010e..51a3d849676 100644 --- a/gnu/usr.bin/binutils/gas/hash.c +++ b/gnu/usr.bin/binutils/gas/hash.c @@ -1,5 +1,6 @@ /* hash.c - hash table lookup strings - - Copyright (C) 1987, 1990, 1991, 1992 Free Software Foundation, Inc. + Copyright (C) 1987, 90, 91, 92, 93, 94, 95, 1996 + Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -551,7 +552,7 @@ hash_grow (handle) /* make a hash table grow */ */ temp = handle->hash_stat[STAT_SIZE]; newwhere = ((struct hash_entry *) - xmalloc ((unsigned long) ((temp << GROW_FACTOR + 1) + xmalloc ((unsigned long) ((temp << (GROW_FACTOR + 1)) /* +1 for wall slot */ * sizeof (struct hash_entry)))); if (newwhere == NULL) @@ -820,7 +821,7 @@ hash_print_statistics (file, name, h) used = h->hash_stat[STAT_USED]; pct = (used * 100 + sz / 2) / sz; - fprintf (file, "%s hash statistics:\n\t%d/%d slots used (%d%%)\n", + fprintf (file, "%s hash statistics:\n\t%lu/%lu slots used (%lu%%)\n", name, used, sz, pct); #define P(name, off) \ |