![]() |
YAC 3.6.2
Yet Another Coupler
|
#include "utils_common.h"
Go to the source code of this file.
Macros | |
#define | ASSERT(c) |
#define | COPY_DATA(data, count) |
Functions | |
void | yac_quicksort_index (int *a, size_t n, int *idx) |
void | yac_quicksort_index_yac_int_size_t (yac_int *a, size_t n, size_t *idx) |
void | yac_quicksort_index_yac_int_yac_int (yac_int *a, size_t n, yac_int *idx) |
void | yac_quicksort_index_size_t_yac_int (size_t *a, size_t n, yac_int *idx) |
void | yac_quicksort_index_yac_int_uint64_t (yac_int *a, size_t n, uint64_t *idx) |
void | yac_quicksort_index_yac_int_int (yac_int *a, size_t n, int *idx) |
void | yac_quicksort_index_size_t_size_t (size_t *a, size_t n, size_t *idx) |
void | yac_quicksort_index_uint64_t_size_t (uint64_t *a, size_t n, size_t *idx) |
void | yac_quicksort_index_int_size_t (int *a, size_t n, size_t *idx) |
void | yac_quicksort_index_size_t_int (size_t *a, size_t n, int *idx) |
void | yac_quicksort_index_size_t_void_p (size_t *a, size_t n, void **idx) |
void | yac_quicksort_index_int_yac_int (int *a, size_t n, yac_int *idx) |
void | yac_quicksort_index_int_double (int *a, size_t n, double *idx) |
void | yac_quicksort_index_size_t_size_t_double (size_t *a, size_t n, size_t *b, double *c) |
void | yac_quicksort_index_yac_int_yac_int_double (yac_int *a, size_t n, yac_int *b, double *c) |
void | yac_quicksort_index_yac_int_yac_int_size_t (yac_int *a, size_t n, yac_int *b, size_t *c) |
void | yac_quicksort_index_int_size_t_size_t (int *a, size_t n, size_t *b, size_t *c) |
void | yac_quicksort_index_int_size_t_yac_int (int *a, size_t n, size_t *b, yac_int *c) |
void | yac_mergesort (void *base, size_t num, size_t size, int(*compar)(const void *, const void *)) |
static void | yac_remove_duplicates_uint (unsigned *array, size_t *n) |
static void | yac_remove_duplicates_double (double *array, size_t *n) |
static void | yac_remove_duplicates_size_t (size_t *array, size_t *n) |
static void | yac_remove_duplicates_size_t_2 (size_t(*array)[2], size_t *n) |
static void | yac_remove_duplicates_size_t_3 (size_t(*array)[3], size_t *n) |
static void | yac_remove_duplicates_yac_int (yac_int *array, size_t *n) |
#define ASSERT | ( | c | ) |
Definition at line 230 of file utils_core.h.
#define COPY_DATA | ( | data, | |
count ) |
Definition at line 237 of file utils_core.h.
void yac_mergesort | ( | void * | base, |
size_t | num, | ||
size_t | size, | ||
int(* | compar )(const void *, const void *) ) |
Natural Merge sort
Definition at line 134 of file mergesort.c.
void yac_quicksort_index | ( | int * | a, |
size_t | n, | ||
int * | idx ) |
void yac_quicksort_index_int_double | ( | int * | a, |
size_t | n, | ||
double * | idx ) |
void yac_quicksort_index_int_size_t | ( | int * | a, |
size_t | n, | ||
size_t * | idx ) |
void yac_quicksort_index_int_size_t_size_t | ( | int * | a, |
size_t | n, | ||
size_t * | b, | ||
size_t * | c ) |
void yac_quicksort_index_int_size_t_yac_int | ( | int * | a, |
size_t | n, | ||
size_t * | b, | ||
yac_int * | c ) |
void yac_quicksort_index_int_yac_int | ( | int * | a, |
size_t | n, | ||
yac_int * | idx ) |
void yac_quicksort_index_size_t_int | ( | size_t * | a, |
size_t | n, | ||
int * | idx ) |
void yac_quicksort_index_size_t_size_t | ( | size_t * | a, |
size_t | n, | ||
size_t * | idx ) |
void yac_quicksort_index_size_t_size_t_double | ( | size_t * | a, |
size_t | n, | ||
size_t * | b, | ||
double * | c ) |
void yac_quicksort_index_size_t_void_p | ( | size_t * | a, |
size_t | n, | ||
void ** | idx ) |
void yac_quicksort_index_size_t_yac_int | ( | size_t * | a, |
size_t | n, | ||
yac_int * | idx ) |
void yac_quicksort_index_uint64_t_size_t | ( | uint64_t * | a, |
size_t | n, | ||
size_t * | idx ) |
void yac_quicksort_index_yac_int_int | ( | yac_int * | a, |
size_t | n, | ||
int * | idx ) |
void yac_quicksort_index_yac_int_size_t | ( | yac_int * | a, |
size_t | n, | ||
size_t * | idx ) |
void yac_quicksort_index_yac_int_uint64_t | ( | yac_int * | a, |
size_t | n, | ||
uint64_t * | idx ) |
|
inlinestatic |
remove duplicated entries from a list of integers
[in,out] | array | array containing a sorted (ascending) list of integers |
[in,out] | n | number of entries in array |
Definition at line 81 of file utils_core.h.
|
inlinestatic |
remove duplicated entries from a list of integers
[in,out] | array | array containing a sorted (ascending) list of integers |
[in,out] | n | number of entries in array |
Definition at line 108 of file utils_core.h.
|
inlinestatic |
remove duplicated entries from a list of integers
[in,out] | array | array containing a sorted (ascending) list of integers |
[in,out] | n | number of entries in array |
Definition at line 135 of file utils_core.h.
|
inlinestatic |
remove duplicated entries from a list of integers
[in,out] | array | array containing a sorted (ascending) list of integers |
[in,out] | n | number of entries in array |
Definition at line 169 of file utils_core.h.
|
inlinestatic |
remove duplicated entries from a list of integers
[in,out] | array | array containing a sorted (ascending) list of integers |
[in,out] | n | number of entries in array |
Definition at line 54 of file utils_core.h.
|
inlinestatic |
remove duplicated entries from a list of integers
[in,out] | array | array containing a sorted (ascending) list of integers |
[in,out] | n | number of entries in array |
Definition at line 207 of file utils_core.h.