Skip to content

Conversation

@radarhere
Copy link
Member

Helps #4213

Using the endian handling in

Pillow/src/libImaging/Unpack.c

Lines 1042 to 1046 in b73e3dd

#ifdef WORDS_BIGENDIAN
out[0] = tmp[1]; out[1] = tmp[0];
#else
memcpy(out, &pixel, sizeof(pixel));
#endif
as inspiration, fixes getextrema I;16 operations for big-endian.

@radarhere radarhere added the Big-endian Big-endian processors label Feb 29, 2020
@python-pillow python-pillow deleted a comment from codecov bot Feb 29, 2020
@python-pillow python-pillow deleted a comment from codecov bot Feb 29, 2020
@python-pillow python-pillow deleted a comment from codecov bot Feb 29, 2020
@hugovk hugovk merged commit 332e392 into python-pillow:master Mar 25, 2020
@hugovk
Copy link
Member

hugovk commented Mar 25, 2020

Thanks!

@radarhere radarhere deleted the endian branch March 26, 2020 10:07
This was referenced Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Big-endian Big-endian processors

2 participants