Prefer constexpr to preprocessor conditionals when checking endianness
Summary:
[Folly] Prefer `constexpr` to preprocessor conditionals when checking endianness.
Using `if (folly::kIsLittleEndian) {` v.s. `#if __BYTE_ORDER__ == __LITTLE_ENDIAN__`.
Reviewed By: meyering
Differential Revision: D3296770
fbshipit-source-id: b26df83fdd42a50663746fc7c9d5fbe67e6671eb
Showing
Please register or sign in to comment