aboutsummaryrefslogtreecommitdiff
path: root/src/base/sort/uint.c
blob: 68c9a70b71e6abee917369e6fb56c8c1d7add8d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "internal.h"

void
sortยทuint(uint arr[], uintptr sz)
{
    uint tmp;
#define LESS(i, j) (arr[i] < arr[j])
#define SWAP(i, j) (tmp = arr[i], arr[i] = arr[j], arr[j] = tmp)
    QSORT(sz, LESS, SWAP);
#undef SWAP
#undef LESS
}