The MASM Forum Archive 2004 to 2012

General Forums => The Laboratory => Topic started by: Jibz on January 09, 2005, 04:00:17 PM

Title: BriefLZ compression code ported to MASM
Post by: Jibz on January 09, 2005, 04:00:17 PM
Here is a port of my little BriefLZ project to MASM.

BriefLZ is a small and fast open source implementation of a Lempel-Ziv style compression algorithm. The main focus is on speed, but the ratios achieved are quite good compared to similar algorithms.

The included example is compressing the input file in 56k chunks. This is for compatibility with the 16-bit version, and you can get better ratios by using a larger block size.

The full package (http://www.ibsensoftware.com/) contains source in C and NASM style assembler, but since a couple of people have asked for a MASM port, here it is :U.

[attachment deleted by admin]
Title: Re: BriefLZ compression code ported to MASM
Post by: Petroizki on January 09, 2005, 04:40:30 PM
thanks,

Is this the "small" or the "fast" version, i remember seeing two version in the original package?
Title: Re: BriefLZ compression code ported to MASM
Post by: Jibz on January 09, 2005, 05:56:05 PM
It was the "fast" version.

I have uploaded a new zip above, which contains both the "fast" and "small" versions :U.
Title: Re: BriefLZ compression code ported to MASM
Post by: Vortex on January 09, 2005, 10:03:43 PM
Hi Jibz,

Once again, very nice work :U
Title: Re: BriefLZ compression code ported to MASM
Post by: Ghirai on January 10, 2005, 10:21:30 AM
Nice wok Jibz, thanks.
Title: Re: BriefLZ compression code ported to MASM
Post by: hutch-- on January 11, 2005, 12:08:38 AM
This looks good stuf Jibz.  :U
Title: Re: BriefLZ compression code ported to MASM
Post by: Jibz on January 15, 2005, 11:04:27 AM
Thanks for all the positive feedback :U.

I updated the attachment above with 'safe' versions of the depackers, which should not read or write outside the bounds they are given, no matter what the input is. These should also be in the next release of BriefLZ.