Use the optional CRC32 instructions to accelerate leveldb's CRC32C computation on ARMv8 (32 and 64 bit). Uses a similar plan as the SSE42 instructions for x86.
Needs testing. What I've tested:
- Build system detection seems to work; only if the compiler supports the instructions and
HWCAPx_CRC32exists in the kernel headers, the specific compilation unit is built - Instruction set is successfully detected and used on Odroid-C2 AARCH64, CRC computations are correct
- Instruction set is (correctly) not detected, and not used on Cubox/i.MX6 ARM32.
Fails travis test only because: the new src/leveldb/* files should go to https://github.com/bitcoin-core/leveldb, most of the changes here are build system, though.