summaryrefslogtreecommitdiff
path: root/common.lisp
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2025-11-04 17:53:41 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2025-11-04 17:53:41 -0300
commit4e6aae19275dad2053adbc2ad34ab1330daf1b0f (patch)
tree0f6d08e48b06be9ee48ca6848289068ea228112c /common.lisp
parentd2a8d3a2171ebbc9934e3703a0f9b6fd4070a6b8 (diff)
downloadlempel-4e6aae19275dad2053adbc2ad34ab1330daf1b0f.tar.gz
lempel-4e6aae19275dad2053adbc2ad34ab1330daf1b0f.zip
Working decoder on byte level
Diffstat (limited to 'common.lisp')
-rw-r--r--common.lisp9
1 files changed, 9 insertions, 0 deletions
diff --git a/common.lisp b/common.lisp
new file mode 100644
index 0000000..a061ca1
--- /dev/null
+++ b/common.lisp
@@ -0,0 +1,9 @@
+(in-package #:lempel)
+
+(defparameter window-bits 12) ; Amount of bits for window. Valid range between 8 and 15
+(defparameter break-even-threshold 4) ; Minimum word length to consider for compression
+(defparameter reversed-byte-order nil)
+
+(defstruct point
+ (offset 0 :type fixnum)
+ (size 0 :type fixnum))