projects
/
sort-networks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f2d6e7
)
sn-apply: Use `sn_stage_sort' rather than the own function.
author
Florian Forster
<octo@leeloo.home.verplant.org>
Sat, 10 May 2008 06:32:20 +0000
(08:32 +0200)
committer
Florian Forster
<octo@leeloo.home.verplant.org>
Sat, 10 May 2008 06:32:20 +0000
(08:32 +0200)
src/sn-apply.c
patch
|
blob
|
history
diff --git
a/src/sn-apply.c
b/src/sn-apply.c
index
0f99ab2
..
3694f03
100644
(file)
--- a/
src/sn-apply.c
+++ b/
src/sn-apply.c
@@
-142,23
+142,9
@@
static int show_sort (int *values)
for (i = 0; i < stages_num; i++)
{
sn_stage_t *s;
- int j;
s = SN_NETWORK_STAGE_GET (network, i);
-
- for (j = 0; j < SN_STAGE_COMP_NUM (s); j++)
- {
- sn_comparator_t *c;
-
- c = SN_STAGE_COMP_GET (s, j);
-
- if (values[c->min] > values[c->max])
- {
- int temp = values[c->min];
- values[c->min] = values[c->max];
- values[c->max] = temp;
- }
- } /* for (comparators) */
+ sn_stage_sort (s, values);
show_values (SN_NETWORK_INPUT_NUM (network), values);
} /* for (stages) */