summaryrefslogtreecommitdiff
path: root/counts.h
blob: b0666471d845eb88c9242b4b6cfc9277565c5f05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef COUNTS_H
#define COUNTS_H

enum {
	CURRENT,
	SORTNET,
	CHECK_SORTED,
	STEAL_BUF,
	LAST_OVERLAP,
	MERGE,
	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