Skip to content

Commit

Permalink
stagex: infinity_net: use sort_r() instead of qsort_r()
Browse files Browse the repository at this point in the history
  • Loading branch information
Akaricchi committed Jun 16, 2024
1 parent aba2e7c commit 82ac031
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stages/stagex/spells/infinity_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#include "spells.h"

#include "util/sort_r.h"

typedef struct LatticeNode LatticeNode;
struct LatticeNode {
cmplx ofs;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 82ac031

Please sign in to comment.