#include <stdlib.h>
#include <string.h>
#include "ensure_array_size.h"
#include "utils_core.h"
Go to the source code of this file.
|
static void | determine_runs (char *base, size_t num, size_t size, int(*compar)(const void *, const void *), struct run **runs, size_t *num_runs) |
|
static void | merge (char *base_a, size_t num_a, int a_ascending, char *base_b, size_t num_b, int b_ascending, size_t size, int(*compar)(const void *, const void *), char *target) |
|
static void | merge_runs (char *base, size_t size, int(*compar)(const void *, const void *), struct run **runs, size_t *num_runs, char *buffer) |
|
void | yac_mergesort (void *base, size_t num, size_t size, int(*compar)(const void *, const void *)) |
|
◆ determine_runs()
static void determine_runs |
( |
char * | base, |
|
|
size_t | num, |
|
|
size_t | size, |
|
|
int(* | compar )(const void *, const void *), |
|
|
struct run ** | runs, |
|
|
size_t * | num_runs ) |
|
static |
◆ merge()
static void merge |
( |
char * | base_a, |
|
|
size_t | num_a, |
|
|
int | a_ascending, |
|
|
char * | base_b, |
|
|
size_t | num_b, |
|
|
int | b_ascending, |
|
|
size_t | size, |
|
|
int(* | compar )(const void *, const void *), |
|
|
char * | target ) |
|
static |
◆ merge_runs()
static void merge_runs |
( |
char * | base, |
|
|
size_t | size, |
|
|
int(* | compar )(const void *, const void *), |
|
|
struct run ** | runs, |
|
|
size_t * | num_runs, |
|
|
char * | buffer ) |
|
static |
◆ yac_mergesort()
void yac_mergesort |
( |
void * | base, |
|
|
size_t | num, |
|
|
size_t | size, |
|
|
int(* | compar )(const void *, const void *) ) |