FD.io VPP  v20.01-9-g24064d02a
Vector Packet Processing
qsort.c File Reference
+ Include dependency graph for qsort.c:

Go to the source code of this file.

Data Structures

struct  qst_t
 

Macros

#define THRESH   4 /* threshold for insertion */
 
#define MTHRESH   6 /* threshold for median */
 

Functions

static void qst (qst_t *q, char *base, char *max)
 
void qsort (void *base, uword n, uword size, int(*compar)(const void *, const void *))
 

Macro Definition Documentation

◆ MTHRESH

#define MTHRESH   6 /* threshold for median */

Definition at line 37 of file qsort.c.

◆ THRESH

#define THRESH   4 /* threshold for insertion */

Definition at line 36 of file qsort.c.

Function Documentation

◆ qsort()

void qsort ( void *  base,
uword  n,
uword  size,
int(*)(const void *, const void *)  compar 
)

Definition at line 56 of file qsort.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qst()

static void qst ( qst_t q,
char *  base,
char *  max 
)
static

Definition at line 145 of file qsort.c.

+ Here is the caller graph for this function: