Lines Matching refs:ma_used
448 #define GROWTH_RATE(d) ((d)->ma_used*3)
479 assert(mp->ma_used <= SHARED_KEYS_MAX_SIZE);
515 CHECK(0 <= mp->ma_used && mp->ma_used <= usable);
527 CHECK(mp->ma_used <= SHARED_KEYS_MAX_SIZE);
576 CHECK(mp->ma_used <= SHARED_KEYS_MAX_SIZE);
579 for (Py_ssize_t i=0; i < mp->ma_used; i++) {
748 mp->ma_used = used;
1276 mp->ma_used++;
1290 mp->ma_used++;
1349 mp->ma_used++;
1435 assert(mp->ma_keys->dk_usable >= mp->ma_used);
1437 Py_ssize_t numentries = mp->ma_used;
1958 mp->ma_used--;
2096 mp->ma_used = 0;
2132 assert(mp->ma_used <= SHARED_KEYS_MAX_SIZE);
2133 if (i < 0 || i >= mp->ma_used)
2216 if (mp->ma_used == 0) {
2248 if (((PyDictObject *)dict)->ma_used == 0) {
2277 if (PyDict_CheckExact(d) && ((PyDictObject *)d)->ma_used == 0) {
2412 if (mp->ma_used == 0) {
2420 writer.min_length = 1 + 4 + (2 + 4) * (mp->ma_used - 1) + 1;
2485 return mp->ma_used;
2546 n = mp->ma_used;
2550 if (n != mp->ma_used) {
2578 n = mp->ma_used;
2582 if (n != mp->ma_used) {
2615 n = mp->ma_used;
2627 if (n != mp->ma_used) {
2834 if (other == mp || other->ma_used == 0)
2837 if (mp->ma_used == 0) {
2847 other->ma_used == okeys->dk_nentries &&
2849 USABLE_FRACTION(DK_SIZE(okeys)/2) < other->ma_used)) {
2862 mp->ma_used = other->ma_used;
2878 if (USABLE_FRACTION(DK_SIZE(mp->ma_keys)) < other->ma_used) {
2880 if (dictresize(mp, estimate_log2_keysize(mp->ma_used + other->ma_used), unicode)) {
3025 if (mp->ma_used == 0) {
3046 split_copy->ma_used = mp->ma_used;
3061 (mp->ma_used >= (mp->ma_keys->dk_nentries * 2) / 3))
3088 new->ma_used = mp->ma_used;
3114 return ((PyDictObject *)mp)->ma_used;
3156 if (a->ma_used != b->ma_used)
3368 mp->ma_used++;
3382 mp->ma_used++;
3469 if (self->ma_used == 0) {
3525 self->ma_used--;
3766 d->ma_used = 0;
3968 di->di_used = dict->ma_used;
3969 di->len = dict->ma_used;
3974 di->di_pos = dict->ma_used - 1;
4020 if (di->di_dict != NULL && di->di_used == di->di_dict->ma_used)
4053 if (di->di_used != d->ma_used) {
4064 if (i >= d->ma_used)
4154 if (di->di_used != d->ma_used) {
4164 if (i >= d->ma_used)
4254 if (di->di_used != d->ma_used) {
4264 if (i >= d->ma_used)
4382 if (di->di_used != d->ma_used) {
4568 len = dv->dv_dict->ma_used;
5535 return ((PyDictObject *)dict)->ma_used == 0;