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

Unified Diff: include/core/SkOnce.h

Issue 143423004: ARM Skia NEON patches - 35 - First AArch64 support (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase Created 6 years, 10 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
Index: include/core/SkOnce.h
diff --git a/include/core/SkOnce.h b/include/core/SkOnce.h
index 59eaf598bca1b3a49257cbcf856b5b248c79063e..a72822e48c2aa5427590b532ec7774945dba5a80 100644
--- a/include/core/SkOnce.h
+++ b/include/core/SkOnce.h
@@ -61,12 +61,10 @@ inline static void compiler_barrier() {
#endif
inline static void full_barrier_on_arm() {
-#ifdef SK_CPU_ARM
-# if SK_ARM_ARCH >= 7
- asm volatile("dmb" : : : "memory");
-# else
+#if (defined(SK_CPU_ARM) && SK_ARM_ARCH >= 7) || defined(SK_CPU_ARM64)
+ asm volatile("dmb ish" : : : "memory");
+#elif defined(SK_CPU_ARM)
asm volatile("mcr p15, 0, %0, c7, c10, 5" : : "r" (0) : "memory");
-# endif
#endif
}

Powered by Google App Engine
This is Rietveld 408576698