Lines Matching refs:nNumUsed
83 if ((ht)->nNumUsed >= (ht)->nTableSize) { \
244 .nNumUsed = 0,
259 ht->nNumUsed = 0; in _zend_hash_init_int()
291 ht->nNumUsed = ht->nNumOfElements = ht->nNextFreeElement = 2; in zend_new_pair()
353 for (i = 0; i < ht->nNumUsed; i++) { in zend_hash_packed_to_hash()
378 for (i = 0; i < ht->nNumUsed; i++) { in zend_hash_to_packed()
417 memcpy(ht->arData, old_buckets, sizeof(Bucket) * ht->nNumUsed); in zend_hash_extend()
425 ZEND_API void ZEND_FASTCALL zend_hash_discard(HashTable *ht, uint32_t nNumUsed) in zend_hash_discard() argument
432 p = arData + ht->nNumUsed; in zend_hash_discard()
433 end = arData + nNumUsed; in zend_hash_discard()
434 ht->nNumUsed = nNumUsed; in zend_hash_discard()
486 while (pos < ht->nNumUsed && Z_ISUNDEF(ht->arPacked[pos])) { in _zend_hash_get_valid_pos()
490 while (pos < ht->nNumUsed && Z_ISUNDEF(ht->arData[pos].val)) { in _zend_hash_get_valid_pos()
630 HashPosition res = ht->nNumUsed; in zend_hash_iterators_lower_pos()
812 idx = ht->nNumUsed++; in _zend_hash_add_or_update_i()
887 idx = ht->nNumUsed++; in _zend_hash_str_add_or_update_i()
1031 && h < ht->nNumUsed) { in _zend_hash_index_add_or_update_i()
1054 if (h > ht->nNumUsed) { in _zend_hash_index_add_or_update_i()
1055 zval *q = ht->arPacked + ht->nNumUsed; in _zend_hash_index_add_or_update_i()
1062 ht->nNextFreeElement = ht->nNumUsed = h + 1; in _zend_hash_index_add_or_update_i()
1076 if (ht->nNumUsed >= ht->nTableSize) { in _zend_hash_index_add_or_update_i()
1103 idx = ht->nNumUsed++; in _zend_hash_index_add_or_update_i()
1239 …if (ht->nNumUsed > ht->nNumOfElements + (ht->nNumOfElements >> 5)) { /* additional term is there t… in zend_hash_do_resize()
1252 memcpy(ht->arData, old_buckets, sizeof(Bucket) * ht->nNumUsed); in zend_hash_do_resize()
1269 ht->nNumUsed = 0; in zend_hash_rehash()
1284 } while (++i < ht->nNumUsed); in zend_hash_rehash()
1286 uint32_t old_num_used = ht->nNumUsed; in zend_hash_rehash()
1293 while (++i < ht->nNumUsed) { in zend_hash_rehash()
1312 while (++i < ht->nNumUsed) { in zend_hash_rehash()
1335 ht->nNumUsed = j; in zend_hash_rehash()
1342 } while (++i < ht->nNumUsed); in zend_hash_rehash()
1347 _zend_hash_iterators_update(ht, old_num_used, ht->nNumUsed); in zend_hash_rehash()
1362 if (new_idx >= ht->nNumUsed) { in _zend_hash_packed_del_val()
1373 if (ht->nNumUsed - 1 == idx) { in _zend_hash_packed_del_val()
1375 ht->nNumUsed--; in _zend_hash_packed_del_val()
1376 } while (ht->nNumUsed > 0 && (UNEXPECTED(Z_TYPE(ht->arPacked[ht->nNumUsed-1]) == IS_UNDEF))); in _zend_hash_packed_del_val()
1377 ht->nInternalPointer = MIN(ht->nInternalPointer, ht->nNumUsed); in _zend_hash_packed_del_val()
1404 if (new_idx >= ht->nNumUsed) { in _zend_hash_del_el_ex()
1415 if (ht->nNumUsed - 1 == idx) { in _zend_hash_del_el_ex()
1417 ht->nNumUsed--; in _zend_hash_del_el_ex()
1418 } while (ht->nNumUsed > 0 && (UNEXPECTED(Z_TYPE(ht->arData[ht->nNumUsed-1].val) == IS_UNDEF))); in _zend_hash_del_el_ex()
1419 ht->nInternalPointer = MIN(ht->nInternalPointer, ht->nNumUsed); in _zend_hash_del_el_ex()
1641 if (h < ht->nNumUsed) { in zend_hash_index_del()
1670 if (ht->nNumUsed) { in zend_hash_destroy()
1674 zval *end = zv + ht->nNumUsed; in zend_hash_destroy()
1693 Bucket *end = p + ht->nNumUsed; in zend_hash_destroy()
1755 if (ht->nNumUsed) { in zend_array_destroy()
1766 zval *end = zv + ht->nNumUsed; in zend_array_destroy()
1773 Bucket *end = p + ht->nNumUsed; in zend_array_destroy()
1812 if (ht->nNumUsed) { in zend_hash_clean()
1815 zval *end = zv + ht->nNumUsed; in zend_hash_clean()
1834 Bucket *end = p + ht->nNumUsed; in zend_hash_clean()
1878 ht->nNumUsed = 0; in zend_hash_clean()
1891 if (ht->nNumUsed) { in zend_symtable_clean()
1894 end = p + ht->nNumUsed; in zend_symtable_clean()
1918 ht->nNumUsed = 0; in zend_symtable_clean()
1934 for (idx = 0; idx < ht->nNumUsed; idx++, zv++) { in zend_hash_graceful_destroy()
1941 for (idx = 0; idx < ht->nNumUsed; idx++, p++) { in zend_hash_graceful_destroy()
1960 idx = ht->nNumUsed; in zend_hash_graceful_reverse_destroy()
1962 zval *zv = ht->arPacked + ht->nNumUsed; in zend_hash_graceful_reverse_destroy()
1971 Bucket *p = ht->arData + ht->nNumUsed; in zend_hash_graceful_reverse_destroy()
2004 for (idx = 0; idx < ht->nNumUsed; idx++) { in zend_hash_apply()
2019 for (idx = 0; idx < ht->nNumUsed; idx++) { in zend_hash_apply()
2044 for (idx = 0; idx < ht->nNumUsed; idx++) { in zend_hash_apply_with_argument()
2058 for (idx = 0; idx < ht->nNumUsed; idx++) { in zend_hash_apply_with_argument()
2085 for (idx = 0; idx < ht->nNumUsed; idx++) { in zend_hash_apply_with_arguments()
2106 for (idx = 0; idx < ht->nNumUsed; idx++) { in zend_hash_apply_with_arguments()
2137 idx = ht->nNumUsed; in zend_hash_reverse_apply()
2188 for (idx = 0; idx < source->nNumUsed; idx++) { in zend_hash_copy()
2200 for (idx = 0; idx < source->nNumUsed; idx++) { in zend_hash_copy()
2288 zval *end = p + source->nNumUsed; in zend_array_dup_packed_elements()
2305 Bucket *end = p + source->nNumUsed; in zend_array_dup_elements()
2344 target->nNumUsed = 0; in zend_array_dup()
2353 target->nNumUsed = source->nNumUsed; in zend_array_dup()
2369 target->nNumUsed = source->nNumUsed; in zend_array_dup()
2375 (source->nInternalPointer < source->nNumUsed) ? in zend_array_dup()
2390 (source->nInternalPointer < source->nNumUsed) ? in zend_array_dup()
2410 target->nNumUsed = idx; in zend_array_dup()
2449 for (idx = 0; idx < source->nNumUsed; idx++) { in zend_hash_merge()
2462 for (idx = 0; idx < source->nNumUsed; idx++) { in zend_hash_merge()
2485 for (idx = 0; idx < source->nNumUsed; idx++) { in zend_hash_merge()
2498 for (idx = 0; idx < source->nNumUsed; idx++) { in zend_hash_merge()
2544 for (idx = 0; idx < source->nNumUsed; idx++) { in zend_hash_merge_ex()
2598 if (h < ht->nNumUsed) { in zend_hash_index_find()
2641 idx = ht->nNumUsed; in zend_hash_internal_pointer_end_ex()
2659 *pos = ht->nNumUsed; in zend_hash_internal_pointer_end_ex()
2671 if (idx < ht->nNumUsed) { in zend_hash_move_forward_ex()
2675 if (idx >= ht->nNumUsed) { in zend_hash_move_forward_ex()
2676 *pos = ht->nNumUsed; in zend_hash_move_forward_ex()
2687 if (idx >= ht->nNumUsed) { in zend_hash_move_forward_ex()
2688 *pos = ht->nNumUsed; in zend_hash_move_forward_ex()
2709 if (idx < ht->nNumUsed) { in zend_hash_move_backwards_ex()
2727 *pos = ht->nNumUsed; in zend_hash_move_backwards_ex()
2743 if (idx < ht->nNumUsed) { in zend_hash_get_current_key_ex()
2767 if (idx >= ht->nNumUsed) { in zend_hash_get_current_key_zval_ex()
2790 if (idx < ht->nNumUsed) { in zend_hash_get_current_key_type_ex()
2812 if (idx < ht->nNumUsed) { in zend_hash_get_current_data_ex()
2884 for (i = 0; i < ht->nNumUsed; i++) { in zend_hash_sort_internal()
2889 for (j = 0, i = 0; j < ht->nNumUsed; j++) { in zend_hash_sort_internal()
2898 ht->nNumUsed = i; in zend_hash_sort_internal()
2911 sort((void *)ht->arData, ht->nNumUsed, sizeof(Bucket), (compare_func_t) compar, in zend_hash_sort_internal()
2996 for (idx1 = 0, idx2 = 0; idx1 < ht1->nNumUsed; idx1++) { in zend_hash_compare_impl()
3012 ZEND_ASSERT(idx2 != ht2->nNumUsed); in zend_hash_compare_impl()
3022 ZEND_ASSERT(idx2 != ht2->nNumUsed); in zend_hash_compare_impl()
3129 if (idx == ht->nNumUsed) { in zend_hash_minmax()
3136 for (; idx < ht->nNumUsed; idx++) { in zend_hash_minmax()
3155 if (idx == ht->nNumUsed) { in zend_hash_minmax()
3162 for (; idx < ht->nNumUsed; idx++) { in zend_hash_minmax()