projects
/
sort-networks.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Global: collectd → libsortnetwork
[sort-networks.git]
/
src
/
sn_stage.c
diff --git
a/src/sn_stage.c
b/src/sn_stage.c
index
3999851
..
d0467a4
100644
(file)
--- a/
src/sn_stage.c
+++ b/
src/sn_stage.c
@@
-1,6
+1,6
@@
/**
/**
- *
collectd
- src/sn_stage.c
- * Copyright (C) 2008 Florian octo Forster
+ *
libsortnetwork
- src/sn_stage.c
+ * Copyright (C) 2008
-2010
Florian octo Forster
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
@@
-16,7
+16,7
@@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* Authors:
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* Authors:
- * Florian octo Forster <
octo at verplant.org
>
+ * Florian octo Forster <
ff at octo.it
>
**/
#ifndef _ISOC99_SOURCE
**/
#ifndef _ISOC99_SOURCE
@@
-282,6
+282,16
@@
int sn_stage_invert (sn_stage_t *s)
return (0);
} /* int sn_stage_invert */
return (0);
} /* int sn_stage_invert */
+int sn_stage_shift (sn_stage_t *s, int sw, int inputs_num)
+{
+ int i;
+
+ for (i = 0; i < s->comparators_num; i++)
+ sn_comparator_shift (s->comparators + i, sw, inputs_num);
+
+ return (0);
+} /* int sn_stage_shift */
+
int sn_stage_swap (sn_stage_t *s, int con0, int con1)
{
int i;
int sn_stage_swap (sn_stage_t *s, int con0, int con1)
{
int i;