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: source/rotate.cc

Issue 2285683002: Add MIPS SIMD Arch (MSA) optimized MirrorRow function (Closed)
Patch Set: Incorporated review comments Created 4 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
Index: source/rotate.cc
diff --git a/source/rotate.cc b/source/rotate.cc
index 01ea5c40744fbfb748f5ca2b9b24a8e2232a17a8..cb671f7a4bf4a21b0f7fabea4829cb0eddd8423f 100644
--- a/source/rotate.cc
+++ b/source/rotate.cc
@@ -141,6 +141,11 @@ void RotatePlane180(const uint8* src, int src_stride,
MirrorRow = MirrorRow_DSPR2;
}
#endif
+#if defined(HAS_MIRRORROW_MSA)
+ if (TestCpuFlag(kCpuHasMSA)) {
fbarchard1 2016/09/17 01:01:30 needs an alignment test now: #if defined(HAS_MIRR
manojkumar.bhosale 2016/09/19 08:07:21 Done.
+ MirrorRow = MirrorRow_MSA;
+ }
+#endif
#if defined(HAS_COPYROW_SSE2)
if (TestCpuFlag(kCpuHasSSE2)) {
CopyRow = IS_ALIGNED(width, 32) ? CopyRow_SSE2 : CopyRow_Any_SSE2;

Powered by Google App Engine
This is Rietveld 408576698