Lines Matching refs:tail

21     deque->tail = (deque->tail + 1) & (deque->capacity - 1);  in ds_deque_increment_tail()
26 deque->tail = (deque->tail - 1) & (deque->capacity - 1); in ds_deque_decrement_tail()
50 deque->tail = 0; in ds_deque()
63 deque->tail = 0; in ds_deque_preallocated()
76 deque->tail = size; in ds_deque_from_buffer()
115 if (deque->head < deque->tail) { in ds_deque_reset_head()
120 zend_long t = deque->tail; in ds_deque_reset_head()
142 deque->tail = deque->size; in ds_deque_reset_head()
152 deque->tail = deque->size; // Could have been zero before if buffer was full. in ds_deque_reallocate()
194 deque->tail = 0; in ds_deque_clear()
248 if (deque->head < deque->tail) { in ds_deque_reverse()
251 deque->buffer + deque->tail in ds_deque_reverse()
256 zend_long tail = deque->tail; in ds_deque_reverse() local
259 while (head != tail) { in ds_deque_reverse()
260 tail = (tail - 1) & mask; in ds_deque_reverse()
263 deque->buffer[tail] in ds_deque_reverse()
308 SET_AS_RETURN_AND_UNDEF(&deque->buffer[deque->tail]); in ds_deque_pop()
348 if (index < deque->tail) { in ds_deque_remove()
350 ds_deque_memmove(deque, index, index + 1, deque->tail - index); in ds_deque_remove()
351 deque->tail--; in ds_deque_remove()
383 ZVAL_COPY(&deque->buffer[deque->tail], value); in ds_deque_push()
393 ZVAL_COPY(&deque->buffer[deque->tail], argv); in ds_deque_push_va()
435 if (index <= deque->tail) { in ds_deque_insert_va()
441 if ((deque->tail + argc) > deque->capacity) { in ds_deque_insert_va()
449 deque->tail = deque->size; in ds_deque_insert_va()
454 ds_deque_memmove(deque, (index + argc), index, (deque->tail - index)); in ds_deque_insert_va()
455 deque->tail += argc; in ds_deque_insert_va()
536 SWAP_ZVAL(deque->buffer[deque->tail], deque->buffer[deque->head]); in ds_deque_rotate()
542 SWAP_ZVAL(deque->buffer[deque->tail], deque->buffer[deque->head]); in ds_deque_rotate()
585 return &deque->buffer[(deque->tail - 1) & (deque->capacity - 1)]; in ds_deque_get_last()