diff options
Diffstat (limited to 'counts.h')
-rw-r--r-- | counts.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/counts.h b/counts.h new file mode 100644 index 0000000..46e2e18 --- /dev/null +++ b/counts.h @@ -0,0 +1,23 @@ +#ifndef COUNTS_H +#define COUNTS_H + +enum { + CURRENT, + SORTNET, + LAST_OVERLAP, + MERGE, + MOVE_BUFFER, + DISTRIBUTE, + MAX_COUNTS +}; + +extern struct counts { + unsigned long compare, swap, rotate; +} counts[MAX_COUNTS]; + +void clear_all_counts(void); +void clear_accumulator(void); +void add_counts(struct counts*, struct counts*); +void print_counts(void); + +#endif |