projects
/
sort-networks.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/sn_{network,stage}.[ch]: Implement sn_{network,stage}_compare.
[sort-networks.git]
/
src
/
sn_stage.h
diff --git
a/src/sn_stage.h
b/src/sn_stage.h
index
ee51b9f
..
2f5f729
100644
(file)
--- a/
src/sn_stage.h
+++ b/
src/sn_stage.h
@@
-166,6
+166,8
@@
int sn_stage_invert (sn_stage_t *s);
*/
int sn_stage_shift (sn_stage_t *s, int sw, int inputs_num);
*/
int sn_stage_shift (sn_stage_t *s, int sw, int inputs_num);
+int sn_stage_unify (sn_stage_t *s);
+
/**
* Swaps two lines. This is used by the algorithm used in
* sn_network_normalize() to transform non-standard sort networks to standard
/**
* Swaps two lines. This is used by the algorithm used in
* sn_network_normalize() to transform non-standard sort networks to standard
@@
-252,7
+254,9
@@
int sn_stage_serialize (sn_stage_t *s,
*/
sn_stage_t *sn_stage_unserialize (char **buffer, size_t *buffer_size);
*/
sn_stage_t *sn_stage_unserialize (char **buffer, size_t *buffer_size);
-uint32_t sn_stage_get_hashval (const sn_stage_t *s);
+int sn_stage_compare (const sn_stage_t *s0, const sn_stage_t *s1);
+
+uint64_t sn_stage_get_hashval (const sn_stage_t *s);
#endif /* SN_STAGE_H */
#endif /* SN_STAGE_H */