X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsn_stage.h;h=8697edac87e052b4e5e2ee2c67e3794ad75ff4ce;hb=bb4fb03595cf7334acae6b9d6770115de4b0e731;hp=8cd77cff77071ae1313f5d7ef3c4fdf568df82e4;hpb=81effefb7705a491ca062e54f31aa03093c28dbc;p=sort-networks.git diff --git a/src/sn_stage.h b/src/sn_stage.h index 8cd77cf..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,7 +255,9 @@ int sn_stage_serialize (sn_stage_t *s, */ 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 */