blob: ef3ab1c49600440615981ff2ee62198a88712b78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "internal.h"
void
sortยทuint8(uint8 arr[], uintptr sz)
{
uint8 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
}
|