Created
December 10, 2016 08:32
-
-
Save yangxuan8282/5b992e0e6c10632169cdb3979dafecfc to your computer and use it in GitHub Desktop.
The bug is that QT assumes the ARM chip on the Pi has a CRC32 hardware feature, when it does not.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- qt-everywhere-opensource-src-5.7.0/qtbase/src/corelib/tools/qhash.cpp.orig 2016-12-06 08:34:11.021300221 +0000 | |
+++ qt-everywhere-opensource-src-5.7.0/qtbase/src/corelib/tools/qhash.cpp 2016-12-06 08:35:07.411028643 +0000 | |
@@ -137,7 +137,7 @@ | |
h = _mm_crc32_u8(h, *p); | |
return h; | |
} | |
-#elif defined(__ARM_FEATURE_CRC32) | |
+#elif defined(__ARM_FEATURE_CRC32_NA) | |
static inline bool hasFastCrc32() | |
{ | |
return qCpuHasFeature(CRC32); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment