stagex: infinity_net: use sort_r() instead of qsort_r()
This commit is contained in:
parent
e841eb4f7e
commit
9dd5992187
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue