Uses built-in byte swap if available (Apple) and if bswap_XX is undefined.

Defers to pre-defined version if found (e.g. protobuf). For protobuf case, the definitions are identical and thus include order should not affect results.

Github-Pull: #9366
Rebased-From: 815f4148b2eff6c64c764e910e79677d5a67adc7
This commit is contained in:
Karl-Johan Alm
2016-12-16 16:52:35 +09:00
committed by Wladimir J. van der Laan
parent 77eaadb6c9
commit 59c37ae55a
7 changed files with 97 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ BITCOIN_TESTS =\
test/bip32_tests.cpp \
test/blockencodings_tests.cpp \
test/bloom_tests.cpp \
test/bswap_tests.cpp \
test/coins_tests.cpp \
test/compress_tests.cpp \
test/crypto_tests.cpp \