This patch adds endian.h and byteorder.h to mini-os.
endian.h defines __BYTE_ORDER similar to how its done on linux and
__WORDSIZE.
byteorder.h defines the standard macros for cpu_to_be and friends for
16,32, and 64 bit.
The bswap inlines in byteswap.h were changed to macros to allow use in
some initializer statements. A check is added to check gcc versions to
use optimized gcc builtins if they are available.
Signed off by: Matthew Fioravante <matthew.fioravante@jhuapl.edu>
endian.h defines __BYTE_ORDER similar to how its done on linux and
__WORDSIZE.
byteorder.h defines the standard macros for cpu_to_be and friends for
16,32, and 64 bit.
The bswap inlines in byteswap.h were changed to macros to allow use in
some initializer statements. A check is added to check gcc versions to
use optimized gcc builtins if they are available.
Signed off by: Matthew Fioravante <matthew.fioravante@jhuapl.edu>