diff options
author | Jason Merrill <jason@redhat.com> | 2003-05-07 18:07:53 +0000 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2003-05-07 18:07:53 +0000 |
commit | 7108c5dc79b72e614bec4f130170343d0311d904 (patch) | |
tree | 12a8a72b93b880a0be4bc95b78f474f0b76c2c45 /include/hashtab.h | |
parent | 208c2cd6cbe53878d1853bef936cf92e3de3b533 (diff) | |
download | gdb-7108c5dc79b72e614bec4f130170343d0311d904.zip gdb-7108c5dc79b72e614bec4f130170343d0311d904.tar.gz gdb-7108c5dc79b72e614bec4f130170343d0311d904.tar.bz2 |
libiberty/
* hashtab.c (burtle_hash): New fn.
* configure.in: Add AC_C_BIGENDIAN_CROSS.
* aclocal.m4: Include accross.m4.
* configure, config.in: Regenerate.
include/
* hashtab.h (burtle_hash): Prototype.
(burtle_hash_object): New macro.
Diffstat (limited to 'include/hashtab.h')
-rw-r--r-- | include/hashtab.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hashtab.h b/include/hashtab.h index 7acb5eb..b86bb29 100644 --- a/include/hashtab.h +++ b/include/hashtab.h @@ -183,6 +183,11 @@ extern htab_eq htab_eq_pointer; /* A hash function for null-terminated strings. */ extern hashval_t htab_hash_string PARAMS ((const PTR)); +/* An iterative hash function for arbitrary data. */ +extern hashval_t burtle_hash PARAMS ((const PTR, size_t, hashval_t)); +/* Shorthand for hashing something with an intrinsic size. */ +#define burtle_hash_object(OB,INIT) burtle_hash (&OB, sizeof (OB), INIT) + #ifdef __cplusplus } #endif /* __cplusplus */ |