path: root/src/corelib
diff options
authorErik Verbruggen <>2016-02-25 09:59:15 +0100
committerTor Arne Vestbø <>2016-03-08 17:55:13 +0000
commit15ddb7f841f2fccbe854ada9f61a8243e35a4e05 (patch)
treeeb6ccf2600801681f37402f962f5c107e58eaca5 /src/corelib
parent37cfcfb2b5c95e89dff40764412f11d8f5e286ea (diff)
ARMv8: fix crc intrinsic usage.
ARMv8 defines the crc32 instructions as optional features. Even though the target might be ARMv8, the compiler might have been told that the target CPU doesn't support it, in which case __ARM_FEATURE_CRC32 is not defined. Subsequently, the arm_acle.h header might only define the intrinsics when __ARM_FEATURE_CRC32 is defined. Change-Id: I85efcf9efdd2e152e3f3e72310122eebf543ca3b Reviewed-by: Allan Sandfeld Jensen <> Reviewed-by: Tor Arne Vestbø <>
Diffstat (limited to 'src/corelib')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qhash.cpp b/src/corelib/tools/qhash.cpp
index b49c9d683a..1001f2a06c 100644
--- a/src/corelib/tools/qhash.cpp
+++ b/src/corelib/tools/qhash.cpp
@@ -137,7 +137,7 @@ static uint crc32(const Char *ptr, size_t len, uint h)
h = _mm_crc32_u8(h, *p);
return h;
-#elif defined(Q_PROCESSOR_ARM_V8)
+#elif defined(__ARM_FEATURE_CRC32)
static inline bool hasFastCrc32()
return qCpuHasFeature(CRC32);