Skip to content

Big endian support#557

Merged
a1batross merged 5 commits intoFWGS:masterfrom
IntriguingTiles:big-endian-upstreaming
Feb 28, 2026
Merged

Big endian support#557
a1batross merged 5 commits intoFWGS:masterfrom
IntriguingTiles:big-endian-upstreaming

Conversation

@IntriguingTiles
Copy link
Contributor

Figured I'd start with something relatively small. This should be everything that needs to be byteswapped in hlsdk.

I've also added definitions for the s390x architecture which is the only big endian architecture that has official support from debian and some other big distros, which might be useful for CI.

Copy link
Member

@a1batross a1batross left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@nekonomicon what do you think?

@IntriguingTiles
Copy link
Contributor Author

Realized I forgot to add the s390x stuff to cmake and I didn't set XASH_64BIT (although the LP64 check caught this and set it for me).

@a1batross
Copy link
Member

Yeah, there is some safeguards, though not all compilers set __LP64__ or something similar. Besides LP64 isn't the only basic data types model. :)

If it's gonna build, I will merge it.

@IntriguingTiles
Copy link
Contributor Author

It builds and works on at least s390x and 32-bit powerpc.

@a1batross
Copy link
Member

Yeah, I meant the CI, sorry. :)

@a1batross a1batross merged commit 6ba528f into FWGS:master Feb 28, 2026
5 checks passed
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