Chromium Code Reviews| 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) { |