Home
last modified time | relevance | path

Searched refs:DS_DEQUE_MIN_CAPACITY (Results 1 – 4 of 4) sorted by relevance

/ext-ds/src/ds/
H A Dds_deque.c40 return (zend_long) ds_next_power_of_2((uint32_t) size, DS_DEQUE_MIN_CAPACITY); in ds_deque_get_capacity_for_size()
47 deque->buffer = ds_allocate_zval_buffer(DS_DEQUE_MIN_CAPACITY); in ds_deque()
48 deque->capacity = DS_DEQUE_MIN_CAPACITY; in ds_deque()
177 if (deque->capacity / 2 >= DS_DEQUE_MIN_CAPACITY) { in ds_deque_auto_truncate()
192 …deque->buffer = ds_reallocate_zval_buffer(deque->buffer, DS_DEQUE_MIN_CAPACITY, deque->capacity,… in ds_deque_clear()
196 deque->capacity = DS_DEQUE_MIN_CAPACITY; in ds_deque_clear()
H A Dds_deque.h6 #define DS_DEQUE_MIN_CAPACITY 8 // Must be a power of 2 macro
/ext-ds/src/php/classes/
H A Dphp_queue_ce.c154 …d_declare_class_constant_long(php_ds_queue_ce, STR_AND_LEN("MIN_CAPACITY"), DS_DEQUE_MIN_CAPACITY); in php_ds_register_queue()
H A Dphp_deque_ce.c324 …d_declare_class_constant_long(php_ds_deque_ce, STR_AND_LEN("MIN_CAPACITY"), DS_DEQUE_MIN_CAPACITY); in php_ds_register_deque()

Completed in 7 milliseconds