/[bison]/bison/lib/bitset_stats.c
ViewVC logotype

Diff of /bison/lib/bitset_stats.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by eggert, Wed Oct 2 07:49:35 2002 UTC revision 1.5 by eggert, Thu Oct 10 07:23:15 2002 UTC
# Line 75  Line 75 
75      bitset_stats_info->types[BITSET_TYPE_ (BSET)].list_density[(I)]++      bitset_stats_info->types[BITSET_TYPE_ (BSET)].list_density[(I)]++
76    
77    
 typedef struct bitset_stats_struct  
 {  
   bitset bset;  
 } *bitset_stats;  
   
   
 struct bitset_struct  
 {  
   struct bbitset_struct b;  
   struct bitset_stats_struct s;  
 };  
   
   
78  struct bitset_type_info_struct  struct bitset_type_info_struct
79  {  {
80    unsigned int allocs;    unsigned int allocs;
# Line 121  static void bitset_stats_reset PARAMS (( Line 108  static void bitset_stats_reset PARAMS ((
108  static int bitset_stats_toggle PARAMS ((bitset, bitset_bindex));  static int bitset_stats_toggle PARAMS ((bitset, bitset_bindex));
109  static int bitset_stats_test PARAMS ((bitset, bitset_bindex));  static int bitset_stats_test PARAMS ((bitset, bitset_bindex));
110  static bitset_bindex bitset_stats_size PARAMS ((bitset));  static bitset_bindex bitset_stats_size PARAMS ((bitset));
111    static bitset_bindex bitset_stats_count PARAMS ((bitset));
112    static int bitset_stats_empty_p PARAMS ((bitset));
113    static void bitset_stats_ones PARAMS ((bitset));
114    static void bitset_stats_zero PARAMS ((bitset));
115    static void bitset_stats_copy PARAMS ((bitset, bitset));
116    static int bitset_stats_disjoint_p PARAMS ((bitset, bitset));
117    static int bitset_stats_equal_p PARAMS ((bitset, bitset));
118    static void bitset_stats_not PARAMS ((bitset, bitset));
119    static int bitset_stats_subset_p PARAMS ((bitset, bitset));
120    static void bitset_stats_and PARAMS ((bitset, bitset, bitset));
121    static int bitset_stats_and_cmp PARAMS ((bitset, bitset, bitset));
122    static void bitset_stats_andn PARAMS ((bitset, bitset, bitset));
123    static int bitset_stats_andn_cmp PARAMS ((bitset, bitset, bitset));
124    static void bitset_stats_or PARAMS ((bitset, bitset, bitset));
125    static int bitset_stats_or_cmp PARAMS ((bitset, bitset, bitset));
126    static void bitset_stats_xor PARAMS ((bitset, bitset, bitset));
127    static int bitset_stats_xor_cmp PARAMS ((bitset, bitset, bitset));
128    static void bitset_stats_and_or PARAMS ((bitset, bitset, bitset, bitset));
129    static int bitset_stats_and_or_cmp PARAMS ((bitset, bitset, bitset, bitset));
130    static void bitset_stats_andn_or PARAMS ((bitset, bitset, bitset, bitset));
131    static int bitset_stats_andn_or_cmp PARAMS ((bitset, bitset, bitset, bitset));
132    static void bitset_stats_or_and PARAMS ((bitset, bitset, bitset, bitset));
133    static int bitset_stats_or_and_cmp PARAMS ((bitset, bitset, bitset, bitset));
134  static bitset_bindex bitset_stats_list PARAMS ((bitset, bitset_bindex *,  static bitset_bindex bitset_stats_list PARAMS ((bitset, bitset_bindex *,
135                                                  bitset_bindex,                                                  bitset_bindex,
136                                                  bitset_bindex *));                                                  bitset_bindex *));
# Line 799  bitset_stats_type_get (bset) Line 809  bitset_stats_type_get (bset)
809  size_t  size_t
810  bitset_stats_bytes (void)  bitset_stats_bytes (void)
811  {  {
812    return sizeof (struct bitset_struct);    return sizeof (struct bitset_stats_struct);
813  }  }
814    
815    
# Line 807  bitset Line 817  bitset
817  bitset_stats_init (bset, n_bits, type)  bitset_stats_init (bset, n_bits, type)
818       bitset bset;       bitset bset;
819       bitset_bindex n_bits;       bitset_bindex n_bits;
820       enum bitset_type type;       enum_bitset_type type;
821  {  {
822    size_t bytes;    size_t bytes;
823    bitset sbset;    bitset sbset;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26