zlib
zlib copied to clipboard
minizip: use single ZREAD64 call in unz64local_getShort/Long/Long64
minizip: use single ZREAD64 call in unz64local_getShort/Long/Long64 implementation, rather than read it byte by byte.
Code is still compatible with big endian architectures. At the same time both Clang and GCC are able to reinterpret local uchar c[N] array as appropriately sized little endian unsigned number on x64 arch, instead of performing shifting and or-ing calculations.
cc: @gvollant.
This look a good idea for me
this is a good idea