Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(729)

Unified Diff: src/opts/SkChecksum_opts.h

Issue 2322033002: Apple devices do not support CRC32 instructions. Don't believe Clang's lies. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkOpts.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/opts/SkChecksum_opts.h
diff --git a/src/opts/SkChecksum_opts.h b/src/opts/SkChecksum_opts.h
index 4bcd9b1c358f0dda5275f2a8cd679708ab143e79..3e1acf08d7c140506f8efd9bce512c05db084062 100644
--- a/src/opts/SkChecksum_opts.h
+++ b/src/opts/SkChecksum_opts.h
@@ -13,7 +13,7 @@
#if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE42
#include <immintrin.h>
-#elif defined(SK_CPU_ARM64) && defined(__ARM_FEATURE_CRC32)
+#elif defined(SK_CPU_ARM64) && defined(SK_ARM_HAS_CRC32)
#include <arm_acle.h>
#endif
@@ -127,7 +127,7 @@ static inline T unaligned_load(const uint8_t* src) {
return hash;
}
-#elif defined(SK_CPU_ARM64) && defined(__ARM_FEATURE_CRC32)
+#elif defined(SK_CPU_ARM64) && defined(SK_ARM_HAS_CRC32)
static uint32_t hash_fn(const void* vdata, size_t bytes, uint32_t hash) {
auto data = (const uint8_t*)vdata;
if (bytes >= 24) {
« no previous file with comments | « src/core/SkOpts.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698