zlib icon indicating copy to clipboard operation
zlib copied to clipboard

minizip: use single ZREAD64 call in unz64local_getShort/Long/Long64

Open eugenegff opened this issue 4 years ago • 3 comments

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.

eugenegff avatar Apr 23 '21 14:04 eugenegff

cc: @gvollant.

Neustradamus avatar Aug 12 '22 21:08 Neustradamus

This look a good idea for me

gvollant avatar Aug 19 '22 13:08 gvollant

this is a good idea

gvollant avatar Oct 15 '22 08:10 gvollant