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; |
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 *)); |
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 |
|
|
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; |