Yet Another eXchange Tool  0.9.0
Functions
mergesort.h File Reference

merge sort declaration More...

#include <stdlib.h>
#include "sort_common.h"
Include dependency graph for mergesort.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void xt_mergesort_idxpos (idxpos_type *v, size_t n)
 
void xt_mergesort_index (Xt_int *a, int n, int *idx, int reset_index)
 

Detailed Description

merge sort declaration

Author
Jörg Behrens behre.nosp@m.ns@d.nosp@m.krz.d.nosp@m.e Moritz Hanke hanke.nosp@m.@dkr.nosp@m.z.de Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de

Definition in file mergesort.h.

Function Documentation

◆ xt_mergesort_idxpos()

void xt_mergesort_idxpos ( idxpos_type v,
size_t  n 
)

mergesort changing structured values

Parameters
[in,out]vdata to be sorted
[in]nnumber of elements in v

◆ xt_mergesort_index()

void xt_mergesort_index ( Xt_int a,
int  n,
int *  idx,
int  reset_index 
)

mergesort changing values and indices

Parameters
[in,out]adata to be sorted
[in]nlength of data
[in,out]idxold index of sorted returned a
[in]reset_indexoverride given idx by identity idx

Definition at line 195 of file mergesort.c.

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