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

Unified Diff: src/opts/SkNx_neon.h

Issue 1333983002: use new shuffle to speed up affine matrix mappts (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: now 86 on NEON Created 5 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/opts/SkMatrix_opts.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/opts/SkNx_neon.h
diff --git a/src/opts/SkNx_neon.h b/src/opts/SkNx_neon.h
index cf149862c5791c8477bf17eb9d8e3a3e3039eac8..3d90f878a50a38f516b77698fa21770d410f08e7 100644
--- a/src/opts/SkNx_neon.h
+++ b/src/opts/SkNx_neon.h
@@ -396,6 +396,11 @@ public:
#undef SHIFT16
#undef SHIFT8
+template <>
+inline SkNf<4,float> SkNx_shuffle_impl<SkNf<4,float>, 1,0,3,2>(const SkNf<4,float>& src) {
+ return vrev64q_f32(src.fVec);
+}
+
} // namespace
#endif//SkNx_neon_DEFINED
« no previous file with comments | « src/opts/SkMatrix_opts.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698