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

Unified Diff: src/opts/Sk4x_none.h

Issue 997353005: Start fresh on swizzles (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: badc Created 5 years, 9 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/Sk4x_neon.h ('k') | src/opts/Sk4x_sse.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/opts/Sk4x_none.h
diff --git a/src/opts/Sk4x_none.h b/src/opts/Sk4x_none.h
index 3b7ad46e738f324c07fa41b848f44803cfb97cdb..8e17768af65969b9d05f673f03fbf8fbe565cf42 100644
--- a/src/opts/Sk4x_none.h
+++ b/src/opts/Sk4x_none.h
@@ -111,9 +111,7 @@ M(template <int m, int a, int s, int k> Sk4x<T>) Shuffle(const Sk4x<T>& x, const
k < 4 ? x.fVec[k] : y.fVec[k-4]);
}
-M(Sk4x<T>) zwxy() const { return Shuffle<2,3,0,1>(*this, *this); }
-M(Sk4x<T>) XYAB(const Sk4x& xyzw, const Sk4x& abcd) { return Shuffle<0,1,4,5>( xyzw, abcd); }
-M(Sk4x<T>) ZWCD(const Sk4x& xyzw, const Sk4x& abcd) { return Shuffle<2,3,6,7>( xyzw, abcd); }
+M(Sk4x<T>) badc() const { return Shuffle<1,0,3,2>(*this, *this); }
#undef M
« no previous file with comments | « src/opts/Sk4x_neon.h ('k') | src/opts/Sk4x_sse.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698