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