[Zlib-devel] assembly code path for zlib 1.2.2.2

Gilles Vollant info at winimage.com
Sat Feb 5 23:15:40 EST 2005


 
In http://gvollant.free.fr/upd_asm_zl1222.zip
you'll find the assembly code modification for zlib 1.2.2.2

Note a point : the addition of gzhead and gzindex at the beginning of
structure internal_state (deflate.h) affect a lot assembly code.
Same thing for dmax and head in inflate_state on inflate.h
I had modified a lot of assembly code.

In the future, I suggest you add new field at the end of internal_state (or
other structure used by assembly code).


Same remark about inflate.h and NO_GZIP/GUNZIP preprocessor : when NO_GZIP
is defined, the value of somes inflate_mode macro is modified.
This affect inffas32.asm and inffast.S.
I higly suggest remove the #ifdef GUNZIP in the inflate_mode enum in
inflate.h.
It's better having unused C constant (this never cost memory and is not a
problem) than breaking binary compatibility.


And a last point : I consider my AMD64 version of longest_match
(contrib\masmx64\gvmat64.asm of this zipfile) as "final".
If anyone want convert it to GCC/Linux, this can be a great idea :-)

Best regards
Gilles Vollant





More information about the Zlib-devel mailing list