leveldb-subtree
leveldb-subtree copied to clipboard
cherry-pick: Remove leveldb::port::kLittleEndian.
Clang 10 includes the optimizations described in https://bugs.llvm.org/show_bug.cgi?id=41761. This means that the platform-independent implementations of {Decode,Encode}Fixed{32,64}() compile to one instruction on the most recent Clang and GCC.
PiperOrigin-RevId: 306330166
Cherry-picked from upstream: https://github.com/google/leveldb/commit/201f52201f5dd9701e7a8ceaa0ec4d344e69e022. Currently part of https://github.com/bitcoin/bitcoin/pull/29852.
Would it be an alternative to sync all commits with upstream?