#include <stdlib.h>
#include <string.h>
#include "myqsort.h"
Go to the source code of this file.
Classes | |
struct | stack_node |
Defines | |
#define | MAX_THRESH 4 |
#define | min(x, y) ((x) < (y) ? (x) : (y)) |
#define | POP(low, high) ((void) (--top, (low = top->lo), (high = top->hi))) |
#define | PUSH(low, high) ((void) ((top->lo = (low)), (top->hi = (high)), ++top)) |
#define | STACK_NOT_EMPTY (stack < top) |
#define | STACK_SIZE (8 * sizeof(unsigned long int)) |
#define | SWAP(a, b, size) |
Functions | |
void | myqsort (void *const pbase, size_t total_elems, size_t size, myqsort_cmp cmp, void *data) |