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

Unified Diff: src/opts/SkUtils_opts_arm.cpp

Issue 1075003002: Replace NEON assembly memset16 and memset32 with intrinsic versions. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 8 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: src/opts/SkUtils_opts_arm.cpp
diff --git a/src/opts/SkUtils_opts_arm.cpp b/src/opts/SkUtils_opts_arm.cpp
index b3a652e74535f35fe08c906abdaf12f49b49ff0d..d74471f787b213052b4c00dea6f4bf58b914945c 100644
--- a/src/opts/SkUtils_opts_arm.cpp
+++ b/src/opts/SkUtils_opts_arm.cpp
@@ -8,14 +8,14 @@
#include "SkUtils.h"
#include "SkUtilsArm.h"
-extern "C" void memset16_neon(uint16_t dst[], uint16_t value, int count);
-extern "C" void memset32_neon(uint32_t dst[], uint32_t value, int count);
+void sk_memset16_neon(uint16_t dst[], uint16_t value, int count);
+void sk_memset32_neon(uint32_t dst[], uint32_t value, int count);
SkMemset16Proc SkMemset16GetPlatformProc() {
#if SK_ARM_NEON_IS_ALWAYS
- return memset16_neon;
+ return sk_memset16_neon;
#elif SK_ARM_NEON_IS_DYNAMIC
- return sk_cpu_arm_has_neon() ? memset16_neon : nullptr;
+ return sk_cpu_arm_has_neon() ? sk_memset16_neon : nullptr;
#else
return nullptr;
#endif
@@ -23,9 +23,9 @@ SkMemset16Proc SkMemset16GetPlatformProc() {
SkMemset32Proc SkMemset32GetPlatformProc() {
#if SK_ARM_NEON_IS_ALWAYS
- return memset32_neon;
+ return sk_memset32_neon;
#elif SK_ARM_NEON_IS_DYNAMIC
- return sk_cpu_arm_has_neon() ? memset32_neon : nullptr;
+ return sk_cpu_arm_has_neon() ? sk_memset32_neon : nullptr;
#else
return nullptr;
#endif

Powered by Google App Engine
This is Rietveld 408576698