Lines Matching refs:head
11 deque->head = (deque->head + 1) & (deque->capacity - 1); in ds_deque_increment_head()
16 deque->head = (deque->head - 1) & (deque->capacity - 1); in ds_deque_decrement_head()
49 deque->head = 0; in ds_deque()
62 deque->head = 0; in ds_deque_preallocated()
75 deque->head = 0; in ds_deque_from_buffer()
111 if (deque->head == 0) { in ds_deque_reset_head()
115 if (deque->head < deque->tail) { in ds_deque_reset_head()
116 ds_deque_memmove(deque, 0, deque->head, deque->size); in ds_deque_reset_head()
119 zend_long h = deque->head; in ds_deque_reset_head()
141 deque->head = 0; in ds_deque_reset_head()
151 deque->head = 0; in ds_deque_reallocate()
193 deque->head = 0; in ds_deque_clear()
217 return (deque->head + index) & (deque->capacity - 1); in ds_deque_lookup_index()
248 if (deque->head < deque->tail) { in ds_deque_reverse()
250 deque->buffer + deque->head, in ds_deque_reverse()
255 zend_long head = deque->head; in ds_deque_reverse() local
259 while (head != tail) { in ds_deque_reverse()
262 deque->buffer[head], in ds_deque_reverse()
265 head = (head + 1) & mask; in ds_deque_reverse()
288 SET_AS_RETURN_AND_UNDEF(&deque->buffer[deque->head]); in ds_deque_shift()
358 ds_deque_memmove(deque, deque->head + 1, deque->head, index - deque->head); in ds_deque_remove()
359 deque->head++; in ds_deque_remove()
373 ZVAL_COPY(&deque->buffer[deque->head], &argv[argc]); in ds_deque_unshift_va()
445 ds_deque_memmove(deque, 0, deque->head, deque->size); in ds_deque_insert_va()
447 index -= deque->head; in ds_deque_insert_va()
448 deque->head = 0; in ds_deque_insert_va()
461 ds_deque_memmove(deque, (deque->head - argc), deque->head, (index - deque->head)); in ds_deque_insert_va()
462 deque->head -= argc; in ds_deque_insert_va()
476 zend_long head = deque->head; in ds_deque_find_index() local
481 for (index = 0; index < deque->size; index++, head++) { in ds_deque_find_index()
482 if (zend_is_identical(value, &deque->buffer[head & mask])) { in ds_deque_find_index()
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()
600 return &deque->buffer[deque->head]; in ds_deque_get_first()