|
TPCCLIB
|
Functions for sorting simple arrays. More...
#include "tpcclibConfig.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <string.h>#include "tpcextensions.h"#include "tpcstatist.h"Go to the source code of this file.
Functions | |
| void | statSortInt (int *data, unsigned int n, int order) |
| void | statSortUnsigned (unsigned int *data, unsigned int n, int order) |
| void | statSortDouble (double *data, unsigned int n, int order) |
Functions for sorting simple arrays.
Definition in file sort.c.
| void statSortDouble | ( | double * | data, |
| unsigned int | n, | ||
| int | order ) |
Sort the given double list into ascending or descending order.
| data | Pointer to data array of size n |
| n | Length of data array |
| order | Ascending (0) or descending (<>0) order |
Definition at line 99 of file sort.c.
Referenced by tacInput2sim().
| void statSortInt | ( | int * | data, |
| unsigned int | n, | ||
| int | order ) |
Sort the given integer list into ascending or descending order.
| data | Pointer to data array of size n |
| n | Length of data array |
| order | Ascending (0) or descending (<>0) order |
Definition at line 63 of file sort.c.
| void statSortUnsigned | ( | unsigned int * | data, |
| unsigned int | n, | ||
| int | order ) |
Sort the given unsigned integer list into ascending or descending order.
| data | Pointer to data array of size n |
| n | Length of data array |
| order | Ascending (0) or descending (<>0) order |
Definition at line 81 of file sort.c.