diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-07 18:07:58 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-07 18:07:58 +0000 |
commit | b3552be19c1312109b6ea06579cdf4ef3fc9c4dd (patch) | |
tree | 44f4d6fd3046412557aa8c248e6d948fe847e7be /include | |
parent | 4271799d2f48ac20cd1cfe21f16b19080b084384 (diff) | |
download | gcc-b3552be19c1312109b6ea06579cdf4ef3fc9c4dd.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66565 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/hashtab.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 51d2fc2158b..2e839fa9709 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2003-05-07 Jason Merrill <jason@redhat.com> + + * hashtab.h (burtle_hash): Prototype. + (burtle_hash_object): New macro. + 2003-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * ansidecl.h (ATTRIBUTE_NONNULL, ATTRIBUTE_NULL_PRINTF, diff --git a/include/hashtab.h b/include/hashtab.h index 7acb5eb2859..b86bb29b801 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 */ |