X-Git-Url: https://git.octo.it/?p=sort-networks.git;a=blobdiff_plain;f=src%2Fsn_stage.h;h=8697edac87e052b4e5e2ee2c67e3794ad75ff4ce;hp=cdba998de140dd6d9c15bb648adc1d0799f696e0;hb=bb4fb03595cf7334acae6b9d6770115de4b0e731;hpb=e6b060578b9e783b8c6e5ca164b988a37c753f81 diff --git a/src/sn_stage.h b/src/sn_stage.h index cdba998..8697eda 100644 --- a/src/sn_stage.h +++ b/src/sn_stage.h @@ -144,6 +144,7 @@ int sn_stage_comparator_check_conflict (sn_stage_t *s, const sn_comparator_t *c) * \see sn_network_show */ int sn_stage_show (sn_stage_t *s); +int sn_stage_show_fh (sn_stage_t *s, FILE *fh); /** * Inverts a stage by switching the direction of all comparators. @@ -254,6 +255,8 @@ int sn_stage_serialize (sn_stage_t *s, */ sn_stage_t *sn_stage_unserialize (char **buffer, size_t *buffer_size); +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 */