summaryrefslogtreecommitdiff
path: root/swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'swap.c')
-rw-r--r--swap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/swap.c b/swap.c
index 626abb0..ecf68e5 100644
--- a/swap.c
+++ b/swap.c
@@ -2,9 +2,12 @@
#include <stdint.h>
#include "common.h"
+#include "counts.h"
void swap(char *a, char *b, size_t width)
{
+ counts[CURRENT].swap++;
+
#ifdef __GNUC__
typedef uint32_t __attribute__((__may_alias__)) u32;