Lines Matching refs:ma_used
217 (mp)->ma_used = (mp)->ma_fill = 0; \
270 assert (mp->ma_used == 0); in PyDict_New()
532 mp->ma_used++; in insertdict_by_entry()
589 mp->ma_used++; in insertdict_clean()
627 if (mp->ma_fill == mp->ma_used) { in dictresize()
637 assert(mp->ma_fill > mp->ma_used); in dictresize()
655 mp->ma_used = 0; in dictresize()
791 n_used = mp->ma_used; in dict_set_item_by_hash_or_entry()
816 if (!(mp->ma_used > n_used && mp->ma_fill*3 >= (mp->ma_mask+1)*2)) in dict_set_item_by_hash_or_entry()
818 return dictresize(mp, (mp->ma_used > 50000 ? 2 : 4) * mp->ma_used); in dict_set_item_by_hash_or_entry()
883 mp->ma_used--; in PyDict_DelItem()
1121 if (mp->ma_used == 0) { in dict_repr()
1190 return mp->ma_used; in dict_length()
1259 n = mp->ma_used; in dict_keys()
1263 if (n != mp->ma_used) { in dict_keys()
1293 n = mp->ma_used; in dict_values()
1297 if (n != mp->ma_used) { in dict_values()
1332 n = mp->ma_used; in dict_items()
1344 if (n != mp->ma_used) { in dict_items()
1386 if (PyDict_CheckExact(d) && ((PyDictObject *)d)->ma_used == 0) { in dict_fromkeys()
1598 if (other == mp || other->ma_used == 0) in PyDict_Merge()
1601 if (mp->ma_used == 0) in PyDict_Merge()
1611 if ((mp->ma_fill + other->ma_used)*3 >= (mp->ma_mask+1)*2) { in PyDict_Merge()
1612 if (dictresize(mp, (mp->ma_used + other->ma_used)*2) != 0) in PyDict_Merge()
1707 return ((PyDictObject *)mp)->ma_used; in PyDict_Size()
1829 if (a->ma_used < b->ma_used) in dict_compare()
1831 else if (a->ma_used > b->ma_used) in dict_compare()
1879 if (a->ma_used != b->ma_used) in dict_equal()
2042 if (mp->ma_used == 0) { in dict_pop()
2072 mp->ma_used--; in dict_pop()
2096 if (mp->ma_used == 0) { in dict_popitem()
2129 mp->ma_used--; in dict_popitem()
2361 assert(d->ma_table == NULL && d->ma_fill == 0 && d->ma_used == 0); in dict_new()
2507 di->di_used = dict->ma_used; in dictiter_new()
2509 di->len = dict->ma_used; in dictiter_new()
2543 if (di->di_dict != NULL && di->di_used == di->di_dict->ma_used) in dictiter_len()
2566 if (di->di_used != d->ma_used) { in dictiter_iternextkey()
2638 if (di->di_used != d->ma_used) { in dictiter_iternextvalue()
2710 if (di->di_used != d->ma_used) { in dictiter_iternextitem()
2816 len = dv->dv_dict->ma_used; in dictview_len()