X-Git-Url: https://git.octo.it/?p=sort-networks.git;a=blobdiff_plain;f=src%2Fsn_comparator.h;h=db9bc070ee878690e489bb20c9f7792478ab3f0c;hp=ba82dcb32a5ce1bc54be7e187a8bfc9e781eccd9;hb=518eb323bcc57e22984f75134a6c6b44876d8dd2;hpb=3c95047d30f11d5c4167c3f1dc7d33fff8f6bcc0 diff --git a/src/sn_comparator.h b/src/sn_comparator.h index ba82dcb..db9bc07 100644 --- a/src/sn_comparator.h +++ b/src/sn_comparator.h @@ -28,6 +28,9 @@ #ifndef SN_COMPARATOR_H #define SN_COMPARATOR_H 1 +#include +#include + /** * Struct representing a comparator. Don't access the members of this struct * directly, use the macros below instead. @@ -114,6 +117,8 @@ void sn_comparator_swap (sn_comparator_t *c, int con0, int con1); int sn_comparator_compare (const sn_comparator_t *c0, const sn_comparator_t *c1); +uint32_t sn_comparator_get_hashval (const sn_comparator_t *c); + #endif /* SN_COMPARATOR_H */ /* vim: set shiftwidth=2 softtabstop=2 : */