aboutsummaryrefslogtreecommitdiff
path: root/src/crunch.h
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-11-30 17:17:46 -0500
committerB. Watson <urchlay@slackware.uk>2025-11-30 17:17:46 -0500
commit2b21c11d156e5c76c550b61a3b3a33a89d8578f9 (patch)
treedf06d5bf78486717b34949971131b6d16044e4d3 /src/crunch.h
parentbe8cd823dbd9b27889421bb1dc70217d39752663 (diff)
downloadalftools-2b21c11d156e5c76c550b61a3b3a33a89d8578f9.tar.gz
alf: isolate crunch algo in its own file.
Diffstat (limited to 'src/crunch.h')
-rw-r--r--src/crunch.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/crunch.h b/src/crunch.h
new file mode 100644
index 0000000..4db2f1a
--- /dev/null
+++ b/src/crunch.h
@@ -0,0 +1,7 @@
+#define MAX_INPUT_SIZE (1 << 24)
+
+extern u8 input_buf[MAX_INPUT_SIZE];
+extern u8 output_buf[MAX_INPUT_SIZE];
+extern unsigned int input_len, output_len, out_bitpos;
+
+void crunch(void);