On 23.05.2022 13:00, Jan Beulich wrote: > On 23.05.2022 12:07, Roger Pau Monné wrote: >> Likewise the __ORDER_{BIG,LITTLE}_ENDIAN__ defines would be better >> placed in byteswap.h itself if possible IMO, since it's not strictly >> related to the compiler. > > These need to live in per-arch headers, i.e. asm/byteorder.h.
Or rather not. __BYTE_ORDER__ looks to come from the compiler, so #define-ing respective constants in compiler.h would seem quite reasonable to me. Jan