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