Lines Matching refs:len
27 int len; member
33 (s)->len = 0; \
40 …ic inline void zend_worklist_stack_prepare(zend_arena **arena, zend_worklist_stack *stack, int len) in zend_worklist_stack_prepare() argument
42 ZEND_ASSERT(len >= 0); in zend_worklist_stack_prepare()
44 stack->buf = (int*)zend_arena_calloc(arena, sizeof(*stack->buf), len); in zend_worklist_stack_prepare()
45 stack->len = 0; in zend_worklist_stack_prepare()
46 stack->capacity = len; in zend_worklist_stack_prepare()
51 ZEND_ASSERT(stack->len < stack->capacity); in zend_worklist_stack_push()
52 stack->buf[stack->len++] = i; in zend_worklist_stack_push()
57 ZEND_ASSERT(stack->len); in zend_worklist_stack_peek()
58 return stack->buf[stack->len - 1]; in zend_worklist_stack_peek()
63 ZEND_ASSERT(stack->len); in zend_worklist_stack_pop()
64 return stack->buf[--stack->len]; in zend_worklist_stack_pop()
74 (w)->stack.len = 0; \
83 static inline void zend_worklist_prepare(zend_arena **arena, zend_worklist *worklist, int len) in zend_worklist_prepare() argument
85 ZEND_ASSERT(len >= 0); in zend_worklist_prepare()
86 …worklist->visited = (zend_bitset)zend_arena_calloc(arena, sizeof(zend_ulong), zend_bitset_len(len)… in zend_worklist_prepare()
87 zend_worklist_stack_prepare(arena, &worklist->stack, len); in zend_worklist_prepare()
92 return worklist->stack.len; in zend_worklist_len()