Prefer constexpr to preprocessor conditionals when checking endianness
authorYedidya Feldblum <yfeldblum@fb.com>
Sat, 14 May 2016 19:49:52 +0000 (12:49 -0700)
committerFacebook Github Bot 8 <facebook-github-bot-8-bot@fb.com>
Sat, 14 May 2016 19:53:25 +0000 (12:53 -0700)
commite788c8cab2385ecf1ef2c5a88623b89ea4f7152e
treeac44a82dc23a0aa650f6d1d1e08730cb899c4b44
parent0afc127248ddfd944ec11648ff066d783b87c078
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
folly/Bits.h
folly/experimental/BitVectorCoding.h
folly/experimental/EliasFanoCoding.h
folly/experimental/EventCount.h
folly/experimental/symbolizer/Elf.cpp