stagex: infinity_net: use sort_r() instead of qsort_r()

This commit is contained in:
Andrei Alexeyev 2024-06-16 21:53:12 +02:00
parent e841eb4f7e
commit 9dd5992187
No known key found for this signature in database
GPG key ID: 72D26128040B9690

View file

@ -8,6 +8,8 @@
#include "spells.h"
#include "util/sort_r.h"
typedef struct LatticeNode LatticeNode;
struct LatticeNode {
cmplx ofs;
@ -100,7 +102,7 @@ static void init_idxmap(int num_nodes, int idxmap[num_nodes], LatticeNode nodes[
idxmap[i] = i;
}
qsort_r(idxmap, num_nodes, sizeof(*idxmap), idxmap_cmp, nodes);
sort_r(idxmap, num_nodes, sizeof(*idxmap), idxmap_cmp, nodes);
}
#define MAX_RANK 0xffffffff