aboutsummaryrefslogtreecommitdiff
path: root/libiberty/hashtab.c
AgeCommit message (Collapse)AuthorFilesLines
2002-06-06merge from gccDJ Delorie1-41/+41
2002-04-10 * hashtab.c (higher_prime_number): Use 7 as minimum.Richard Henderson1-32/+46
(find_empty_slot_for_expand): Don't compute hash2 unless needed. (htab_find_slot_with_hash): Likewise.
2001-10-07merge from gccDJ Delorie1-4/+4
2001-08-17merge from gccDJ Delorie1-1/+24
2001-08-17merge from gccDJ Delorie1-0/+16
2001-03-15merge from gccDJ Delorie1-1/+1
2001-03-15merge from gccDJ Delorie1-32/+33
2000-11-29* hashtab.c (higher_prime_number): Use a table, rather than aDJ Delorie1-22/+56
seive, to find the next prime.
2000-11-04 * hashtab.c (htab_expand): Change to return int. Use calloc orHans-Peter Nilsson1-8/+58
xcalloc depending on htab->return_allocation_failure. Return zero if calloc fails. (htab_create): Update comment to cover memory allocation. (htab_try_create): New. (htab_find_slot_with_hash): Return NULL if htab_expand fails. Update comment to cover this.
2000-11-03 * hashtab.c: Change void * to PTR where necessary.Hans-Peter Nilsson1-36/+36
(htab_create, htab_expand): Correct formatting of comment before function.
2000-06-15Synced with libiberty in the gcc repository.H.J. Lu1-62/+107
2000-05-29 * hashtab.c, partition.c, xmemdup.c: Include string.hZack Weinberg1-0/+4
if HAVE_STRING_H. * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H. * objalloc.c: Include config.h. Include stdlib.h and don't declare malloc or free if HAVE_STDLIB_H. * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H, else declare malloc without prototype. Include string.h if HAVE_STRING_H, else declare memset without prototype. Don't include stddef.h. * sort.c: Bring over from GCC.
2000-03-24merge from gccJason Merrill1-166/+265
2000-02-22import libiberty from egcsIan Lance Taylor1-0/+330