From f996c00b6077c109362276c68e4bafafb6fb5a3f Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 7 May 2003 18:06:23 +0000 Subject: [PATCH] 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. --- include/ChangeLog | 5 +++++ include/hashtab.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/include/ChangeLog b/include/ChangeLog index 6d18714ee..ff914e169 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2003-05-07 Jason Merrill + + * hashtab.h (burtle_hash): Prototype. + (burtle_hash_object): New macro. + 2003-04-28 H.J. Lu * bfdlink.h (bfd_link_info): Add relax_finalizing. 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 */ -- 2.43.5