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

Fix SPARC memory alignment issues in Pack/Unpack functions #3858

Merged
merged 1 commit into from Jun 27, 2019

Conversation

kulikjak
Copy link
Contributor

Fixes #3408

Unpacking and packing code is not valid for SPARC CPUs as it is working with 32bit integers on unaligned addresses. This fix reverts some 'optimizations' so that access is aligned properly.

It seems to me that other platforms can benefit from this as well (e.g. ARM will not be faster with unaligned access), but I cannot test it elsewhere and this works for us. I can however improve as needed.

@hugovk hugovk merged commit 219f277 into python-pillow:master Jun 27, 2019
@hugovk
Copy link
Member

hugovk commented Jun 27, 2019

Thank you.

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

Successfully merging this pull request may close these issues.

selftest fails in ImagingUnpackRGB
3 participants