Searched refs:bucket (Results 1 – 7 of 7) sorted by relevance
/ext-ds/src/php/iterators/ |
H A D | php_htable_iterator.c | 13 while (bucket != last && DS_HTABLE_BUCKET_DELETED(bucket)) { in find_starting_bucket() 14 ++bucket; in find_starting_bucket() 18 return bucket; in find_starting_bucket() 41 ds_htable_bucket_t *bucket = iterator->bucket; in php_ds_htable_iterator_get_current_value() local 44 return &bucket->value; in php_ds_htable_iterator_get_current_value() 53 ds_htable_bucket_t *bucket = iterator->bucket; in php_ds_htable_iterator_get_current_keyval() local 56 return &bucket->key; in php_ds_htable_iterator_get_current_keyval() 65 ds_htable_bucket_t *bucket = iterator->bucket; in php_ds_htable_iterator_get_current_key() local 75 ds_htable_bucket_t *bucket = iterator->bucket; in php_ds_htable_iterator_get_current_pair() local 79 zval *key = &bucket->key; in php_ds_htable_iterator_get_current_pair() [all …]
|
H A D | php_htable_iterator.h | 11 ds_htable_bucket_t *bucket; member
|
/ext-ds/src/ds/ |
H A D | ds_htable.c | 62 bucket++; in ds_htable_rehash() 86 bucket++; in ds_htable_rehash() 399 for (; bucket < stop; ++bucket) { in ds_htable_lookup_by_position() 433 return bucket && ds_zval_isset(&bucket->value, check_empty); in ds_htable_isset() 440 return bucket ? &bucket->value : NULL; in ds_htable_get() 677 return bucket; in ds_htable_init_next_bucket() 736 bucket--; in ds_htable_last() 739 return bucket; in ds_htable_last() 751 bucket++; in ds_htable_first() 754 return bucket; in ds_htable_first() [all …]
|
H A D | ds_map.c | 249 ds_htable_bucket_t *bucket = ds_htable_first(map->table); in ds_map_first() local 251 if ( ! bucket) { in ds_map_first() 256 return php_ds_pair_ex(&bucket->key, &bucket->value); in ds_map_first() 261 ds_htable_bucket_t *bucket = ds_htable_last(map->table); in ds_map_last() local 263 if ( ! bucket) { in ds_map_last() 268 return php_ds_pair_ex(&bucket->key, &bucket->value); in ds_map_last() 273 ds_htable_bucket_t *bucket = ds_htable_lookup_by_position(map->table, position); in ds_map_skip() local 275 if ( ! bucket) { in ds_map_skip() 280 return php_ds_pair_ex(&bucket->key, &bucket->value); in ds_map_skip()
|
H A D | ds_set.c | 132 ds_htable_bucket_t *bucket = ds_htable_lookup_by_position(set->table, index); in ds_set_get() local 134 if (bucket) { in ds_set_get() 135 return &bucket->key; in ds_set_get() 144 ds_htable_bucket_t *bucket = ds_htable_lookup_by_position(set->table, 0); in ds_set_get_first() local 146 if ( ! bucket) { in ds_set_get_first() 151 return &bucket->key; in ds_set_get_first() 156 ds_htable_bucket_t *bucket = ds_htable_lookup_by_position(set->table, DS_SET_SIZE(set) - 1); in ds_set_get_last() local 158 if ( ! bucket) { in ds_set_get_last() 163 return &bucket->key; in ds_set_get_last()
|
H A D | ds_htable.h | 52 #define DS_HTABLE_BUCKET_REHASH(table, bucket, mask, idx) \ argument 54 ds_htable_bucket_t *_bucket = bucket; \
|
/ext-ds/ |
H A D | CHANGELOG.md | 81 - `ds_htable_put_distinct` wasn't rehashing the correct bucket pointer (Fixes #53) 118 - `htable` bucket copy macro didn't copy the bucket's "next". 125 - ds_htable_put_next bucket rehash fix
|
Completed in 25 milliseconds