Lines Matching refs:top_s
231 PetscInt *top_s = size_stack, *bottom_s = size_stack; in PCTFS_ivec_sort() local
275 …PetscCheck(top_s - bottom_s < SORT_STACK, PETSC_COMM_SELF, PETSC_ERR_PLIB, "PCTFS_ivec_sort() :: S… in PCTFS_ivec_sort()
278 if ((*top_s = size - ((PetscInt)(pi - ar)))) { in PCTFS_ivec_sort()
280 size -= *top_s + 2; in PCTFS_ivec_sort()
281 top_s++; in PCTFS_ivec_sort()
282 } else if (size -= *top_s + 2) in PCTFS_ivec_sort()
285 size = *(--top_s); in PCTFS_ivec_sort()
300 if (top_s == bottom_s) PetscFunctionReturn(PETSC_SUCCESS); in PCTFS_ivec_sort()
304 size = *(--top_s); in PCTFS_ivec_sort()
314 PetscInt *top_s = size_stack, *bottom_s = size_stack; in PCTFS_ivec_sort_companion() local
380 …PetscCheck(top_s - bottom_s < SORT_STACK, PETSC_COMM_SELF, PETSC_ERR_PLIB, "PCTFS_ivec_sort_compan… in PCTFS_ivec_sort_companion()
383 if ((*top_s = size - ((PetscInt)(pi - ar)))) { in PCTFS_ivec_sort_companion()
386 size -= *top_s + 2; in PCTFS_ivec_sort_companion()
387 top_s++; in PCTFS_ivec_sort_companion()
388 } else if (size -= *top_s + 2) in PCTFS_ivec_sort_companion()
392 size = *(--top_s); in PCTFS_ivec_sort_companion()
410 if (top_s == bottom_s) PetscFunctionReturn(PETSC_SUCCESS); in PCTFS_ivec_sort_companion()
415 size = *(--top_s); in PCTFS_ivec_sort_companion()
425 PetscInt *top_s = size_stack, *bottom_s = size_stack; in PCTFS_ivec_sort_companion_hack() local
491 …PetscCheck(top_s - bottom_s < SORT_STACK, PETSC_COMM_SELF, PETSC_ERR_PLIB, "PCTFS_ivec_sort_compan… in PCTFS_ivec_sort_companion_hack()
494 if ((*top_s = size - ((PetscInt)(pi - ar)))) { in PCTFS_ivec_sort_companion_hack()
497 size -= *top_s + 2; in PCTFS_ivec_sort_companion_hack()
498 top_s++; in PCTFS_ivec_sort_companion_hack()
499 } else if (size -= *top_s + 2) in PCTFS_ivec_sort_companion_hack()
503 size = *(--top_s); in PCTFS_ivec_sort_companion_hack()
520 if (top_s == bottom_s) PetscFunctionReturn(PETSC_SUCCESS); in PCTFS_ivec_sort_companion_hack()
525 size = *(--top_s); in PCTFS_ivec_sort_companion_hack()