[Zlib-devel] Byte-swapping cleanup

Steve Snyder swsnyder at snydernet.net
Fri Feb 10 12:10:34 EST 2012


The attached patch (against ZLib v1.2.6) does the following:

In crc32.c replaced REV() macro with ZSWAP32() macro

In inflate.c replaced REVERSE() macro with ZSWAP32() macro

In zutil.h, use MSVC or GnuC byte-swapping intrinsic functions (typically backed by arch-specific CPU byte-swapping instruction)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: zlib-byteswap.patch
Type: text/x-patch
Size: 4640 bytes
Desc: not available
URL: <http://madler.net/pipermail/zlib-devel_madler.net/attachments/20120210/7aed0aed/attachment.bin>


More information about the Zlib-devel mailing list