From 8b2cf27d1c393ea8119305799b1c5a4473e77718 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sat, 10 May 2008 08:32:20 +0200 Subject: [PATCH] sn-apply: Use `sn_stage_sort' rather than the own function. --- src/sn-apply.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/sn-apply.c b/src/sn-apply.c index 0f99ab2..3694f03 100644 --- 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) */ -- 2.11.0