summaryrefslogtreecommitdiffstats
path: root/pszip.h
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2021-08-28 15:40:35 -0400
committerMalfurious <m@lfurio.us>2021-08-28 15:40:35 -0400
commitf1a44b273147c92cbfd4264093354e04486efec8 (patch)
treeea5b7a982b9d71f8127f74623c73a4f194098932 /pszip.h
parent7bd18b4b22f3a6bf86b131329345f9a75d8f699c (diff)
downloadSorensenCompression-f1a44b273147c92cbfd4264093354e04486efec8.tar.gz
SorensenCompression-f1a44b273147c92cbfd4264093354e04486efec8.zip
Add new C bit iterator
This is an implementation of the linked hack for libgmp. An arithmetic-based solution seems ideal for performance. However, due to the potential size of our output (entire files), a big-integer library is needed for the base type. Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'pszip.h')
-rw-r--r--pszip.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/pszip.h b/pszip.h
new file mode 100644
index 0000000..9d07e49
--- /dev/null
+++ b/pszip.h
@@ -0,0 +1,5 @@
+#pragma once
+
+#include <gmp.h>
+
+void pszip_iterate_bithack01(mpz_t, const mpz_t);