diff options
| author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-22 17:36:03 +0000 | 
|---|---|---|
| committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-22 17:36:03 +0000 | 
| commit | e3190d3de3ceeae84cdcf0b11e93198f50ab9a72 (patch) | |
| tree | 063de2743f266ba724f44dd4ee97a98fa5d9c933 | |
| parent | 6c13736f64158617d1ddfc3d7103b3566aa513cf (diff) | |
| download | ppe42-gcc-e3190d3de3ceeae84cdcf0b11e93198f50ab9a72.tar.gz ppe42-gcc-e3190d3de3ceeae84cdcf0b11e93198f50ab9a72.zip  | |
        * hashtab.h (struct htab): Add size_prime_index.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81030 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | include/ChangeLog | 4 | ||||
| -rw-r--r-- | include/hashtab.h | 12 | 
2 files changed, 12 insertions, 4 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 4e26bce3b63..a4bdb6d293d 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2004-04-22  Richard Henderson  <rth@redhat.com> + +	* hashtab.h (struct htab): Add size_prime_index. +  2004-04-13  Jeff Law  <law@redhat.com>          * hashtab.h (htab_remove_elt_with_hash): Prototype new function. diff --git a/include/hashtab.h b/include/hashtab.h index a2ef32c36ae..de24dedb91b 100644 --- a/include/hashtab.h +++ b/include/hashtab.h @@ -1,5 +1,5 @@  /* An expandable hash tables datatype.   -   Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc. +   Copyright (C) 1999, 2000, 2002, 2003, 2004 Free Software Foundation, Inc.     Contributed by Vladimir Makarov (vmakarov@cygnus.com).  This program is free software; you can redistribute it and/or modify @@ -101,13 +101,13 @@ struct htab GTY(())    /* Table itself.  */    PTR * GTY ((use_param, length ("%h.size"))) entries; -  /* Current size (in entries) of the hash table */ +  /* Current size (in entries) of the hash table.  */    size_t size; -  /* Current number of elements including also deleted elements */ +  /* Current number of elements including also deleted elements.  */    size_t n_elements; -  /* Current number of deleted elements in the table */ +  /* Current number of deleted elements in the table.  */    size_t n_deleted;    /* The following member is used for debugging. Its value is number @@ -126,6 +126,10 @@ struct htab GTY(())    PTR GTY((skip)) alloc_arg;    htab_alloc_with_arg alloc_with_arg_f;    htab_free_with_arg free_with_arg_f; + +  /* Current size (in entries) of the hash table, as an index into the +     table of primes.  */ +  unsigned int size_prime_index;  };  typedef struct htab *htab_t;  | 

