diff options
author | Jason Merrill <jason@redhat.com> | 2003-05-07 18:06:23 +0000 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2003-05-07 18:06:23 +0000 |
commit | f996c00b6077c109362276c68e4bafafb6fb5a3f (patch) | |
tree | 28f4ecf44062119205f42a6434c04a699e41cf91 /include/hashtab.h | |
parent | 85051ee6c14ba965e93971506ca2d2745b50acc7 (diff) | |
download | cygnal-f996c00b6077c109362276c68e4bafafb6fb5a3f.tar.gz cygnal-f996c00b6077c109362276c68e4bafafb6fb5a3f.tar.bz2 cygnal-f996c00b6077c109362276c68e4bafafb6fb5a3f.zip |
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 7acb5eb28..b86bb29b8 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 */ |