• Home
  • Raw
  • Download

Lines Matching refs:ma_used

434 #define GROWTH_RATE(d) ((d)->ma_used*3)
482 CHECK(0 <= mp->ma_used && mp->ma_used <= usable); in _PyDict_CheckConsistency()
528 for (i=0; i < mp->ma_used; i++) { in _PyDict_CheckConsistency()
639 mp->ma_used = 0; in new_dict()
701 new->ma_used = orig->ma_used; in clone_combined_dict()
1072 ((ix >= 0 && old_value == NULL && mp->ma_used != ix) || in insertdict()
1073 (ix == DKIX_EMPTY && mp->ma_used != mp->ma_keys->dk_nentries))) { in insertdict()
1099 mp->ma_used++; in insertdict()
1113 assert(ix == mp->ma_used); in insertdict()
1114 mp->ma_used++; in insertdict()
1162 mp->ma_used++; in insert_to_emptydict()
1229 assert(mp->ma_keys->dk_usable >= mp->ma_used); in dictresize()
1233 numentries = mp->ma_used; in dictresize()
1608 mp->ma_used--; in delitem_common()
1745 mp->ma_used = 0; in PyDict_Clear()
1781 if (i < 0 || i >= mp->ma_used) in _PyDict_Next()
1847 if (mp->ma_used == 0) { in _PyDict_Pop_KnownHash()
1879 mp->ma_used--; in _PyDict_Pop_KnownHash()
1898 if (((PyDictObject *)dict)->ma_used == 0) { in _PyDict_Pop()
1928 if (PyDict_CheckExact(d) && ((PyDictObject *)d)->ma_used == 0) { in _PyDict_FromKeys()
2054 if (mp->ma_used == 0) { in dict_repr()
2062 writer.min_length = 1 + 4 + (2 + 4) * (mp->ma_used - 1) + 1; in dict_repr()
2127 return mp->ma_used; in dict_length()
2192 n = mp->ma_used; in dict_keys()
2196 if (n != mp->ma_used) { in dict_keys()
2235 n = mp->ma_used; in dict_values()
2239 if (n != mp->ma_used) { in dict_values()
2283 n = mp->ma_used; in dict_items()
2295 if (n != mp->ma_used) { in dict_items()
2515 if (other == mp || other->ma_used == 0) in dict_merge()
2518 if (mp->ma_used == 0) in dict_merge()
2528 if (USABLE_FRACTION(mp->ma_keys->dk_size) < other->ma_used) { in dict_merge()
2529 if (dictresize(mp, ESTIMATE_SIZE(mp->ma_used + other->ma_used))) { in dict_merge()
2677 if (mp->ma_used == 0) { in PyDict_Copy()
2696 split_copy->ma_used = mp->ma_used; in PyDict_Copy()
2710 (mp->ma_used >= (mp->ma_keys->dk_nentries * 2) / 3)) in PyDict_Copy()
2745 return ((PyDictObject *)mp)->ma_used; in PyDict_Size()
2787 if (a->ma_used != b->ma_used) in dict_equal()
2952 ((ix >= 0 && value == NULL && mp->ma_used != ix) || in PyDict_SetDefault()
2953 (ix == DKIX_EMPTY && mp->ma_used != mp->ma_keys->dk_nentries))) { in PyDict_SetDefault()
2984 mp->ma_used++; in PyDict_SetDefault()
2993 assert(ix == mp->ma_used); in PyDict_SetDefault()
2997 mp->ma_used++; in PyDict_SetDefault()
3084 if (self->ma_used == 0) { in dict_popitem_impl()
3118 self->ma_used--; in dict_popitem_impl()
3352 d->ma_used = 0; in dict_new()
3557 di->di_used = dict->ma_used; in dictiter_new()
3558 di->len = dict->ma_used; in dictiter_new()
3563 di->di_pos = dict->ma_used - 1; in dictiter_new()
3609 if (di->di_dict != NULL && di->di_used == di->di_dict->ma_used) in dictiter_len()
3642 if (di->di_used != d->ma_used) { in dictiter_iternextkey()
3653 if (i >= d->ma_used) in dictiter_iternextkey()
3730 if (di->di_used != d->ma_used) { in dictiter_iternextvalue()
3740 if (i >= d->ma_used) in dictiter_iternextvalue()
3817 if (di->di_used != d->ma_used) { in dictiter_iternextitem()
3827 if (i >= d->ma_used) in dictiter_iternextitem()
3926 if (di->di_used != d->ma_used) { in dictreviter_iternext()
4094 len = dv->dv_dict->ma_used; in dictview_len()