From f1a44b273147c92cbfd4264093354e04486efec8 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Sat, 28 Aug 2021 15:40:35 -0400 Subject: 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 --- pszip.h | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 pszip.h (limited to 'pszip.h') 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 + +void pszip_iterate_bithack01(mpz_t, const mpz_t); -- cgit v1.2.3