aboutsummaryrefslogtreecommitdiffstats
path: root/src/zswap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zswap.c')
-rw-r--r--src/zswap.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/zswap.c b/src/zswap.c
new file mode 100644
index 0000000..b9a1325
--- /dev/null
+++ b/src/zswap.c
@@ -0,0 +1,12 @@
+/* See LICENSE file for copyright and license details. */
+#include "internals"
+
+
+void
+zswap(z_t a, z_t b)
+{
+ z_t t;
+ *t = *a;
+ *a = *b;
+ *b = t;
+}