Changeset 1915 for trunk/src/kmk/hash.c
- Timestamp:
- Oct 22, 2008, 11:59:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/hash.c
r1914 r1915 137 137 #endif 138 138 139 ht->ht_lookups++; 140 #ifdef CONFIG_WITH_MAKE_STATS 141 make_stats_ht_lookups++; 142 #endif 139 MAKE_STATS (ht->ht_lookups++); 140 MAKE_STATS_3 (make_stats_ht_lookups++); 143 141 for (;;) 144 142 { … … 159 157 if ((*ht->ht_compare) (key, *slot) == 0) 160 158 return slot; 161 ht->ht_collisions++; 162 #ifdef CONFIG_WITH_MAKE_STATS 163 make_stats_ht_collisions++; 164 #endif 159 MAKE_STATS (ht->ht_collisions++); 160 MAKE_STATS_3 (make_stats_ht_collisions++); 165 161 } 166 162 if (!hash_2) … … 186 182 #endif 187 183 188 ht->ht_lookups++; 189 #ifdef CONFIG_WITH_MAKE_STATS 190 make_stats_ht_lookups++; 191 #endif 184 MAKE_STATS (ht->ht_lookups++); 185 MAKE_STATS_3 (make_stats_ht_lookups++); 192 186 193 187 /* first iteration unrolled. */ … … 203 197 return slot; 204 198 205 ht->ht_collisions++; 206 #ifdef CONFIG_WITH_MAKE_STATS 207 make_stats_ht_collisions++; 208 #endif 199 MAKE_STATS (ht->ht_collisions++); 200 MAKE_STATS_3 (make_stats_ht_collisions++); 209 201 } 210 202 else … … 233 225 return slot; 234 226 235 ht->ht_collisions++; 236 #ifdef CONFIG_WITH_MAKE_STATS 237 make_stats_ht_collisions++; 238 #endif 227 MAKE_STATS (ht->ht_collisions++); 228 MAKE_STATS_3 (make_stats_ht_collisions++); 239 229 } 240 230
Note:
See TracChangeset
for help on using the changeset viewer.