summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qhash.cpp
diff options
context:
space:
mode:
authorPeter Seiderer <ps.report@gmx.net>2017-07-16 00:05:44 +0200
committerPeter Seiderer <ps.report@gmx.net>2017-08-29 20:30:59 +0000
commitb7722c251c3a0938c7c71fc3da47fdbe920060b7 (patch)
treed946fd5462619615023163648dddb9b15eb11254 /src/corelib/tools/qhash.cpp
parent6ce4b680cdde7827a6ed4d00dbeb7e7e91569433 (diff)
Fix error attribute(target("+crc")) is unknown
Task-number: QTBUG-61975 Change-Id: I0b1b55c0737dad485b5ace8e6eb7cb842589453d Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/corelib/tools/qhash.cpp')
-rw-r--r--src/corelib/tools/qhash.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/tools/qhash.cpp b/src/corelib/tools/qhash.cpp
index 1f9c05c0b7..4cc9ec8ec8 100644
--- a/src/corelib/tools/qhash.cpp
+++ b/src/corelib/tools/qhash.cpp
@@ -144,7 +144,9 @@ static inline bool hasFastCrc32()
}
template <typename Char>
+#if defined(Q_PROCESSOR_ARM_64)
QT_FUNCTION_TARGET(CRC32)
+#endif
static uint crc32(const Char *ptr, size_t len, uint h)
{
// The crc32[whbd] instructions on Aarch64/Aarch32 calculate a 32-bit CRC32 checksum