Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

Conversation

eugenegff
Copy link
Contributor

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.

…mplementation, rather than read it byte by byte
@Neustradamus
Copy link

cc: @gvollant.

@gvollant
Copy link
Contributor

This look a good idea for me

@gvollant
Copy link
Contributor

this is a good idea

@eugenegff eugenegff closed this Jul 1, 2023
@eugenegff
Copy link
Contributor Author

see https://github.com/madler/zlib/pull/826/files

@Neustradamus
Copy link

Replaced by #826.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants