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

Side by Side Diff: src/core/SkCpu.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 unified diff | Download patch
« no previous file with comments | « include/core/SkPreConfig.h ('k') | src/core/SkOpts.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 Google Inc. 2 * Copyright 2016 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkCpu_DEFINED 8 #ifndef SkCpu_DEFINED
9 #define SkCpu_DEFINED 9 #define SkCpu_DEFINED
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 #else 74 #else
75 #if defined(SK_ARM_HAS_NEON) 75 #if defined(SK_ARM_HAS_NEON)
76 features |= NEON; 76 features |= NEON;
77 #endif 77 #endif
78 78
79 #if defined(SK_CPU_ARM64) 79 #if defined(SK_CPU_ARM64)
80 features |= NEON|NEON_FMA|VFP_FP16; 80 features |= NEON|NEON_FMA|VFP_FP16;
81 #endif 81 #endif
82 82
83 #if defined(__ARM_FEATURE_CRC32) 83 #if defined(SK_ARM_HAS_CRC32)
84 features |= CRC32; 84 features |= CRC32;
85 #endif 85 #endif
86 86
87 #endif 87 #endif
88 return (features & mask) == mask; 88 return (features & mask) == mask;
89 } 89 }
90 90
91 #endif//SkCpu_DEFINED 91 #endif//SkCpu_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkPreConfig.h ('k') | src/core/SkOpts.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698