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

ArtPaint: change POWERPC/INTEL defines to use BYTE_ORDER == BIG_ENDIAN #84

Merged
merged 2 commits into from
Mar 16, 2022

Conversation

dsizzle
Copy link
Collaborator

@dsizzle dsizzle commented Mar 15, 2022

Change INTEL and POWERPC preprocessor checks to use BYTE_ORDER
== BIG_ENDIAN. This allows more generic support for architectures, and
also fixes alpha compositing issue on x86_64 (and perhaps selection
issue on x86).

Didn't change a couple of places where inline asm is used because that might still be specific to the PowerPC arch, but I changed the elif to just else so everything else besides POWERPC will just fall through.

Fixes #81

Change __INTEL__ and __POWERPC__ preprocessor checks to use BYTE_ORDER
== BIG_ENDIAN. This allows more generic support for architectures, and
also fixes alpha compositing issue on x86_64 (and perhaps selection
issue on x86).

Fixes HaikuArchives#81
@korli
Copy link
Contributor

korli commented Mar 15, 2022

Actually most of POWERPC using reciprocal_of_square_root should stay as is.

@korli korli merged commit cedb3d9 into HaikuArchives:master Mar 16, 2022
@dsizzle dsizzle deleted the endian-fix branch April 3, 2022 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

x86_64 seems to be broken
2 participants