[Zlib-devel] Problem with inffast.S and inffas32.asm when NO_GZIP is #defined

Chris Anderson christop at charm.net
Wed Oct 20 20:12:07 EDT 2004


On Wed, 2004-10-20 at 15:38, Cosmin Truta wrote:
> Hi,
> 
> I noticed the ASM inflation code fails when NO_GZIP is #defined. The
> problem exists both in zlib 1.2.1 and 1.2.2.
> 
> Below is the output of example.c, built using gcc on any Intel-based
> platform, and, respectively, Microsoft C on the obvious platform.
> 
> The problem is only with inffast.S and its derivative. inffas86.c is
> working fine -- both the version from contrib/inffas86/, and the newer
> one, available at http://www.charm.net/~christop/zlib/, are okay.

Thanks.  I think it may be the -DNO_GZIP was -DNO_GUNZIP at some point
or somehow NO_GUNZIP got defined.  inffas86.c is using the TYPE and BAD
enums from inflate.h which change value with -DNO_GZIP, but inffast.S
has an #ifdef NO_GUNZIP for those enum changes.  I'll check to see if
that's what is causing it... defining -DNO_GUNZIP as well as -DNO_GZIP
should do it.






More information about the Zlib-devel mailing list