libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
|
Files | |
file | gimbal_sort.h |
Functions | |
void | gblSortSelection (void *pArray, size_t count, size_t elemSize, GblSortComparatorFn pFnCmp) |
void | gblSortQuick (void *pArray, size_t count, size_t elemSize, GblSortComparatorFn pFnCmp) |
void | gblSortInsertion (void *pArray, size_t count, size_t elemSize, GblSortComparatorFn pFnCmp) |
void | gblSortShell (void *pArray, size_t count, size_t elemSize, GblSortComparatorFn pFnCmp) |
void | gblSortMerge (void *pArray, size_t count, size_t elemSize, GblSortComparatorFn pFnCmp) |
void | gblSortComb (void *pArray, size_t count, size_t elemSize, GblSortComparatorFn pFnCmp) |
void | gblSortBubble (void *pArray, size_t count, size_t elemSize, GblSortComparatorFn pFnCmp) |
void | gblSortHeap (void *pArray, size_t count, size_t elemSize, GblSortComparatorFn pFnCmp) |
Collection of sorting algorithms.
void gblSortSelection | ( | void * | pArray, |
size_t | count, | ||
size_t | elemSize, | ||
GblSortComparatorFn | pFnCmp | ||
) |
#include <gimbal_sort.h>
Performs a Selection Sort over the given array with count
elemSize
elements, using pFnCmp
to compare them.
void gblSortQuick | ( | void * | pArray, |
size_t | count, | ||
size_t | elemSize, | ||
GblSortComparatorFn | pFnCmp | ||
) |
#include <gimbal_sort.h>
Performs a Quick Sort over the given array with count
elemSize
elements, using pFnCmp
to compare them.
void gblSortInsertion | ( | void * | pArray, |
size_t | count, | ||
size_t | elemSize, | ||
GblSortComparatorFn | pFnCmp | ||
) |
#include <gimbal_sort.h>
Performs an Insertion Sort over the given array with count
elemSize
elements, using pFnCmp
to compare them.
void gblSortShell | ( | void * | pArray, |
size_t | count, | ||
size_t | elemSize, | ||
GblSortComparatorFn | pFnCmp | ||
) |
#include <gimbal_sort.h>
Performs a Shell Sort over the given array with count
elemSize
elements, using pFnCmp
to compare them.
void gblSortMerge | ( | void * | pArray, |
size_t | count, | ||
size_t | elemSize, | ||
GblSortComparatorFn | pFnCmp | ||
) |
#include <gimbal_sort.h>
Performs a Merge Sort over the given array with count
elemSize
elements, using pFnCmp
to compare them.
void gblSortComb | ( | void * | pArray, |
size_t | count, | ||
size_t | elemSize, | ||
GblSortComparatorFn | pFnCmp | ||
) |
#include <gimbal_sort.h>
Performs a Comb Sort over the given array with count
elemSize
elements, using pFnCmp
to compare them.
void gblSortBubble | ( | void * | pArray, |
size_t | count, | ||
size_t | elemSize, | ||
GblSortComparatorFn | pFnCmp | ||
) |
#include <gimbal_sort.h>
Performs a Bubble Sort over the given array with count
elemSize
elements, using pFnCmp
to compare them.
void gblSortHeap | ( | void * | pArray, |
size_t | count, | ||
size_t | elemSize, | ||
GblSortComparatorFn | pFnCmp | ||
) |
#include <gimbal_sort.h>
Performs a Heap Sort over the given array with count
elemSize
elements, using pFnCmp
to compare them.