ktf icon indicating copy to clipboard operation
ktf copied to clipboard

[Feature] Add bit fields endianness ordering blocks

Open wipawel opened this issue 3 years ago • 0 comments

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 avatar Mar 12 '22 10:03 wipawel