Lines Matching refs:run_stack
522 TIM_SORT_RUN_T *run_stack, in PUSH_NEXT() argument
537 run_stack[*stack_curr].start = *curr; in PUSH_NEXT()
538 run_stack[*stack_curr].length = len; in PUSH_NEXT()
545 TIM_SORT_MERGE(dst, run_stack, *stack_curr, store); in PUSH_NEXT()
546 run_stack[*stack_curr - 2].length += run_stack[*stack_curr - 1].length; in PUSH_NEXT()
564 TIM_SORT_RUN_T run_stack[TIM_SORT_STACK_SIZE]; in TIM_SORT() local
585 if (!PUSH_NEXT(dst, size, store, minrun, run_stack, &stack_curr, &curr)) { in TIM_SORT()
589 if (!PUSH_NEXT(dst, size, store, minrun, run_stack, &stack_curr, &curr)) { in TIM_SORT()
593 if (!PUSH_NEXT(dst, size, store, minrun, run_stack, &stack_curr, &curr)) { in TIM_SORT()
598 if (!CHECK_INVARIANT(run_stack, stack_curr)) { in TIM_SORT()
599 stack_curr = TIM_SORT_COLLAPSE(dst, run_stack, stack_curr, store, size); in TIM_SORT()
603 if (!PUSH_NEXT(dst, size, store, minrun, run_stack, &stack_curr, &curr)) { in TIM_SORT()