Searched refs:USABLE_FRACTION (Results 1 – 2 of 2) sorted by relevance
409 #define USABLE_FRACTION(n) (((n) << 1)/3) macro480 Py_ssize_t usable = USABLE_FRACTION(keys->dk_size); in _PyDict_CheckConsistency()547 usable = USABLE_FRACTION(size); in new_keys_object()652 size = USABLE_FRACTION(DK_SIZE(keys)); in new_dict_with_shared_keys()1321 size = USABLE_FRACTION(DK_SIZE(mp->ma_keys)); in make_keys_shared()1346 if (minused <= USABLE_FRACTION(PyDict_MINSIZE)) { in _PyDict_NewPresized()1353 if (minused > USABLE_FRACTION(max_presize)) { in _PyDict_NewPresized()2528 if (USABLE_FRACTION(mp->ma_keys->dk_size) < other->ma_used) { in dict_merge()2684 Py_ssize_t size = USABLE_FRACTION(DK_SIZE(mp->ma_keys)); in PyDict_Copy()3170 usable = USABLE_FRACTION(size); in _PyDict_SizeOf()[all …]
74 USABLE_FRACTION and GROWTH_RATE in dictobject.c