Skip to content

Add LZ4 decompression#693

Merged
mateoconlechuga merged 8 commits intomasterfrom
lz4-decompression
Feb 4, 2026
Merged

Add LZ4 decompression#693
mateoconlechuga merged 8 commits intomasterfrom
lz4-decompression

Conversation

@calc84maniac
Copy link
Contributor

Adds support for LZ4 block decompression using a length-prefixed format as used in convimg, as well as raw block decompression. The code is generally optimized for speed, within reason.

Decompression has been tested by modifying toolchain examples, but the raw block decompression API is currently untested.

Comment on lines +194 to +198
pop af
; If the backref field is non-zero, this cannot be end of block
jr nz, .L.backref
; Clear carry
or a, a
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would have been, yes, but it became set again from the pop af

@mateoconlechuga
Copy link
Member

Could we add at least one simple test - perhaps just copy an example graphx program and change it to use LZ4? Just so everything is tested

@mateoconlechuga
Copy link
Member

mateoconlechuga commented Feb 4, 2026

Added a test for the normal decompression function and the block decompression function, but lz4_Decompress_Block seem to be behaving oddly and producing this:
image

Nevermind - this was a bad test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants