Detect CRC32 instructions on ARMv8.
authormtklein <mtklein@chromium.org>
Thu, 18 Aug 2016 22:59:08 +0000 (15:59 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 18 Aug 2016 22:59:08 +0000 (15:59 -0700)
commitf1b6030b44a4a9523183c3809a165b6b5353fff5
tree3e7adde8a363553d882866dc7dfbaf8ae233d600
parent10e3d9bf59bdec92c05367ae0b71e1ce1ee4a690
Detect CRC32 instructions on ARMv8.

I have successfully detected CRC32 instruction support on my Nexus 5x.

Use of these instructions to follow... I am not yet sure which compilers if any will give me instrinsics or let me write them in asm.

defined(__ARM_FEATURE_CRC32) should cover users like Android Framework who build with the best settings possible.  cpu-features.h covers use cases like Clank and our bots.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2259133002

Review-Url: https://codereview.chromium.org/2259133002
src/core/SkCpu.cpp
src/core/SkCpu.h