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

[Feature] Add bit fields endianness ordering blocks #263

Open
wipawel opened this issue Mar 12, 2022 · 0 comments
Open

[Feature] Add bit fields endianness ordering blocks #263

wipawel opened this issue Mar 12, 2022 · 0 comments
Labels
feature New feature or request Priority: 4 Nice-to-have feature

Comments

@wipawel
Copy link
Contributor

wipawel commented Mar 12, 2022

Suggested by minipli:

The order of bit field members in C is implementation defined and for gcc it's defined by the ABI.
We should add a block like this, in case someone wants to add Aarch64 support or the like:

#if  __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
// order as above
#else 
// reverse order
#endif
@wipawel wipawel added feature New feature or request Priority: 3 Regular feature labels Mar 12, 2022
@wipawel wipawel added Priority: 4 Nice-to-have feature and removed Priority: 3 Regular feature labels Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request Priority: 4 Nice-to-have feature
Projects
None yet
Development

No branches or pull requests

1 participant