Templates for the qsort routine. More...
Go to the source code of this file.
Macros | |
#define | _GKQSORT_MAX_THRESH 4 |
#define | _GKQSORT_POP(low, high, top) ((--top, (low = top->_lo), (high = top->_hi))) |
#define | _GKQSORT_PUSH(top, low, high) (((top->_lo = (low)), (top->_hi = (high)), ++top)) |
#define | _GKQSORT_STACK_NOT_EMPTY (_stack < _top) |
#define | _GKQSORT_STACK_SIZE (8 * sizeof(size_t)) |
#define | _GKQSORT_SWAP(a, b, t) ((void)((t = *a), (*a = *b), (*b = t))) |
#define | GK_MKQSORT(GKQSORT_TYPE, GKQSORT_BASE, GKQSORT_NELT, GKQSORT_LT) |
Templates for the qsort routine.
$Id: gk_mksort.h 10711 2011-08-31 22:23:04Z karypis $
Definition in file gk_mksort.h.
#define _GKQSORT_MAX_THRESH 4 |
Definition at line 110 of file gk_mksort.h.
#define _GKQSORT_POP | ( | low, | |
high, | |||
top | |||
) | ((--top, (low = top->_lo), (high = top->_hi))) |
Definition at line 115 of file gk_mksort.h.
#define _GKQSORT_PUSH | ( | top, | |
low, | |||
high | |||
) | (((top->_lo = (low)), (top->_hi = (high)), ++top)) |
Definition at line 114 of file gk_mksort.h.
#define _GKQSORT_STACK_NOT_EMPTY (_stack < _top) |
Definition at line 116 of file gk_mksort.h.
#define _GKQSORT_STACK_SIZE (8 * sizeof(size_t)) |
Definition at line 113 of file gk_mksort.h.
Definition at line 106 of file gk_mksort.h.
#define GK_MKQSORT | ( | GKQSORT_TYPE, | |
GKQSORT_BASE, | |||
GKQSORT_NELT, | |||
GKQSORT_LT | |||
) |
Definition at line 120 of file gk_mksort.h.