Lines Matching refs:usable
506 Py_ssize_t usable = USABLE_FRACTION(keys->dk_size); in _PyDict_CheckConsistency() local
508 CHECK(0 <= mp->ma_used && mp->ma_used <= usable); in _PyDict_CheckConsistency()
510 CHECK(0 <= keys->dk_usable && keys->dk_usable <= usable); in _PyDict_CheckConsistency()
511 CHECK(0 <= keys->dk_nentries && keys->dk_nentries <= usable); in _PyDict_CheckConsistency()
512 CHECK(keys->dk_usable + keys->dk_nentries <= usable); in _PyDict_CheckConsistency()
525 CHECK(DKIX_DUMMY <= ix && ix <= usable); in _PyDict_CheckConsistency()
528 for (i=0; i < usable; i++) { in _PyDict_CheckConsistency()
569 Py_ssize_t es, usable; in new_keys_object() local
574 usable = USABLE_FRACTION(size); in new_keys_object()
602 + sizeof(PyDictKeyEntry) * usable); in new_keys_object()
613 dk->dk_usable = usable; in new_keys_object()
617 memset(DK_ENTRIES(dk), 0, sizeof(PyDictKeyEntry) * usable); in new_keys_object()
3274 Py_ssize_t size, usable, res; in _PyDict_SizeOf() local
3277 usable = USABLE_FRACTION(size); in _PyDict_SizeOf()
3281 res += usable * sizeof(PyObject*); in _PyDict_SizeOf()
3287 + sizeof(PyDictKeyEntry) * usable); in _PyDict_SizeOf()