src/sn_{network,stage,comparator}.[ch]: Implement sn_network_get_hashval() and friends.
[sort-networks.git] / src / sn_comparator.h
index ba82dcb..db9bc07 100644 (file)
@@ -28,6 +28,9 @@
 #ifndef SN_COMPARATOR_H
 #define SN_COMPARATOR_H 1
 
+#include <stdint.h>
+#include <inttypes.h>
+
 /**
  * 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 : */