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

void
sortยทint64(int64 arr[], uintptr sz)
{
    int64 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
}