SGX Endian Swap SGX compatible endianness-swapping functions/macros. Based on GNU implementation. Usage Just #include "sgx_endianswap.h" on your enclave code. The API follows exactly the same of GNU endian.h.