OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
134 } | 134 } |
135 #endif | 135 #endif |
136 // TODO(fbarchard): Mirror on mips handle unaligned memory. | 136 // TODO(fbarchard): Mirror on mips handle unaligned memory. |
137 #if defined(HAS_MIRRORROW_DSPR2) | 137 #if defined(HAS_MIRRORROW_DSPR2) |
138 if (TestCpuFlag(kCpuHasDSPR2) && | 138 if (TestCpuFlag(kCpuHasDSPR2) && |
139 IS_ALIGNED(src, 4) && IS_ALIGNED(src_stride, 4) && | 139 IS_ALIGNED(src, 4) && IS_ALIGNED(src_stride, 4) && |
140 IS_ALIGNED(dst, 4) && IS_ALIGNED(dst_stride, 4)) { | 140 IS_ALIGNED(dst, 4) && IS_ALIGNED(dst_stride, 4)) { |
141 MirrorRow = MirrorRow_DSPR2; | 141 MirrorRow = MirrorRow_DSPR2; |
142 } | 142 } |
143 #endif | 143 #endif |
144 #if defined(HAS_MIRRORROW_MSA) | |
145 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.
| |
146 MirrorRow = MirrorRow_MSA; | |
147 } | |
148 #endif | |
144 #if defined(HAS_COPYROW_SSE2) | 149 #if defined(HAS_COPYROW_SSE2) |
145 if (TestCpuFlag(kCpuHasSSE2)) { | 150 if (TestCpuFlag(kCpuHasSSE2)) { |
146 CopyRow = IS_ALIGNED(width, 32) ? CopyRow_SSE2 : CopyRow_Any_SSE2; | 151 CopyRow = IS_ALIGNED(width, 32) ? CopyRow_SSE2 : CopyRow_Any_SSE2; |
147 } | 152 } |
148 #endif | 153 #endif |
149 #if defined(HAS_COPYROW_AVX) | 154 #if defined(HAS_COPYROW_AVX) |
150 if (TestCpuFlag(kCpuHasAVX)) { | 155 if (TestCpuFlag(kCpuHasAVX)) { |
151 CopyRow = IS_ALIGNED(width, 64) ? CopyRow_AVX : CopyRow_Any_AVX; | 156 CopyRow = IS_ALIGNED(width, 64) ? CopyRow_AVX : CopyRow_Any_AVX; |
152 } | 157 } |
153 #endif | 158 #endif |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
482 default: | 487 default: |
483 break; | 488 break; |
484 } | 489 } |
485 return -1; | 490 return -1; |
486 } | 491 } |
487 | 492 |
488 #ifdef __cplusplus | 493 #ifdef __cplusplus |
489 } // extern "C" | 494 } // extern "C" |
490 } // namespace libyuv | 495 } // namespace libyuv |
491 #endif | 496 #endif |
OLD | NEW |