P99
Macros | Functions
p99_swap.h File Reference
#include "p99_int.h"
+ Include dependency graph for p99_swap.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define P99_ASORT(TAB, ...)
 
#define P99_QSORT(TAB, NB, ...)
 
#define P99_SWAP(_0, _1)   ((sizeof(_0) > sizeof(uintmax_t)) ? P00_SWAP1(_0, _1) : P00_SWAP2(_0, _1))
 Swap the contents of the arguments. More...
 

Functions

void p99_swap1 (void *p00_p0, void *p00_p1, size_t p00_size)
 Swap the contents of the arguments. More...
 
void p99_swap2 (void *p00_p0, void *p00_p1, size_t p00_size)
 Swap the contents of the arguments. More...
 
P99_ALEN
#define P99_ALEN(ARR, N)
Produce the length of the argument array ARR in terms of number of elements.
Definition: p99_for.h:678
P99_NARG
#define P99_NARG(...)
Return the length of the variable length argument list, where an empty argument list is considered to...
Definition: p99_args.h:117
P99_IF_LT
#define P99_IF_LT(A, B)
Test two decimal numbers A and B for whether A is strictly less than B.
Definition: p99_if.h:120
qsort_s
#define qsort_s(B, N, S, CMP, CTX)
A generic sorting routine.
Definition: p99_qsort.h:496