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

Unified Diff: source/rotate.cc

Issue 2553403002: Add MSA optimized TransposeWx8_MSA and TransposeUVWx8_MSA functions (Closed)
Patch Set: Created 4 years 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: source/rotate.cc
diff --git a/source/rotate.cc b/source/rotate.cc
index 098fcf7c70e79484a944e000c1eb38a82ead1b61..15e9aa808bb0a155088e9df5278960fef3f18f5b 100644
--- a/source/rotate.cc
+++ b/source/rotate.cc
@@ -62,6 +62,13 @@ void TransposePlane(const uint8* src,
}
}
#endif
+#if defined(HAS_TRANSPOSEWX8_MSA)
+ if (TestCpuFlag(kCpuHasMSA)) {
+ TransposeWx8 = TransposeWx8_Any_MSA;
+ if (IS_ALIGNED(width, 16)) {
fbarchard1 2016/12/12 19:59:18 missing the matching {
manojkumar.bhosale 2016/12/13 08:52:22 Done.
+ TransposeWx8 = TransposeWx8_MSA;
+ }
+#endif
// Work across the source in 8x8 tiles
while (i >= 8) {
@@ -232,6 +239,14 @@ void TransposeUV(const uint8* src,
TransposeUVWx8 = TransposeUVWx8_DSPR2;
}
#endif
+#if defined(HAS_TRANSPOSEUVWX8_MSA)
+ if (TestCpuFlag(kCpuHasMSA)) {
+ TransposeUVWx8 = TransposeUVWx8_Any_MSA;
+ if (IS_ALIGNED(width, 8)) {
+ TransposeUVWx8 = TransposeUVWx8_MSA;
+ }
+ }
+#endif
// Work through the source in 8x8 tiles.
while (i >= 8) {

Powered by Google App Engine
This is Rietveld 408576698