Skip to content

Test endianness with compiler built-in#175

Closed
bgermann wants to merge 1 commit intoMacPaw:masterfrom
bgermann:fix/crc-big-endian
Closed

Test endianness with compiler built-in#175
bgermann wants to merge 1 commit intoMacPaw:masterfrom
bgermann:fix/crc-big-endian

Conversation

@bgermann
Copy link
Copy Markdown

There is no definition for XAD_BYTE_ORDER_BIG_ENDIAN, so big endian machines will use the little endian CRC implementation. Use compiler built-ins to check for endianness instead.

Fixes: #168

There is no definition for XAD_BYTE_ORDER_BIG_ENDIAN, so big endian
machines will use the little endian CRC implementation. Use compiler
built-ins to check for endianness instead.

Fixes: MacPaw#168
@PaulTaykalo
Copy link
Copy Markdown
Contributor

@bgermann how about fix like this one:
#179

@bgermann
Copy link
Copy Markdown
Author

If you do not want to use the compiler built-ins this is probably okay by looking at the source.

@PaulTaykalo
Copy link
Copy Markdown
Contributor

Duplicated in the #179

@bgermann bgermann deleted the fix/crc-big-endian branch April 14, 2026 06:31
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.

Faster CRC implementation breaks on big endian

2 participants