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

Align structures for 64-bit platforms #844

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

GermanAizek
Copy link
Contributor

@GermanAizek GermanAizek commented Feb 28, 2025

Fully similar issue as in zlib-ng: zlib-ng/zlib-ng#1881

  • mz_stream_split 120 -> 104 bytes
  • mz_zip_file, mz_zip_entry 128 -> 120 bytes
  • minizip_opt 32 -> 24 bytes
  • mz_crypt_sha 32 -> 24 bytes
  • mz_crypt_hmac 40 -> 32 bytes

- mz_stream_split 120 -> 104 bytes
- mz_zip_file, mz_zip_entry 128 -> 120 bytes
- minizip_opt 32 -> 24 bytes
- mz_crypt_sha 32 -> 24 bytes
- mz_crypt_hmac 40 -> 32 bytes
@GermanAizek GermanAizek changed the title performance: align structures for 64bit platforms Align structures for 64-bit platforms Feb 28, 2025
@@ -30,12 +30,12 @@ typedef struct mz_zip_file_s {
time_t modified_date; /* last modified date in unix time */
time_t accessed_date; /* last accessed date in unix time */
time_t creation_date; /* creation date in unix time */
uint32_t crc; /* crc-32 */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this structure can be changed due to compatiblity.

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.

2 participants