mirror of
https://github.com/opnsense/src.git
synced 2026-04-05 01:15:30 -04:00
This change serves two purposes.
First, we take advantage of the compiler provided endian definitions to
eliminate some long-standing duplication between the different versions
of this header. __BYTE_ORDER__ has been defined since GCC 4.6, so there
is no need to rely on platform defaults or e.g. __MIPSEB__ to determine
endianness. A new common sub-header is added, but there should be no
changes to the visibility of these definitions.
Second, this eliminates the hand-rolled __bswapNN() routines, again in
favor of the compiler builtins. This was done already for x86 in
|
||
|---|---|---|
| .. | ||
| atheros | ||
| beri | ||
| broadcom | ||
| cavium | ||
| conf | ||
| include | ||
| ingenic | ||
| malta | ||
| mediatek | ||
| mips | ||
| nlm | ||