libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
Sorting

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)
 

Detailed Description

Collection of sorting algorithms.

Function Documentation

◆ gblSortSelection()

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.

◆ gblSortQuick()

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.

◆ gblSortInsertion()

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.

◆ gblSortShell()

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.

◆ gblSortMerge()

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.

◆ gblSortComb()

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.

◆ gblSortBubble()

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.

◆ gblSortHeap()

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.