| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebM 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 #include <immintrin.h> | 10 #include <immintrin.h> |
| 11 #include "./vpx_dsp_rtcd.h" |
| 11 #include "vpx_ports/mem.h" | 12 #include "vpx_ports/mem.h" |
| 12 | 13 |
| 13 #define FSAD64_H(h) \ | 14 #define FSAD64_H(h) \ |
| 14 unsigned int vpx_sad64x##h##_avx2(const uint8_t *src_ptr, \ | 15 unsigned int vpx_sad64x##h##_avx2(const uint8_t *src_ptr, \ |
| 15 int src_stride, \ | 16 int src_stride, \ |
| 16 const uint8_t *ref_ptr, \ | 17 const uint8_t *ref_ptr, \ |
| 17 int ref_stride) { \ | 18 int ref_stride) { \ |
| 18 int i, res; \ | 19 int i, res; \ |
| 19 __m256i sad1_reg, sad2_reg, ref1_reg, ref2_reg; \ | 20 __m256i sad1_reg, sad2_reg, ref1_reg, ref2_reg; \ |
| 20 __m256i sum_sad = _mm256_setzero_si256(); \ | 21 __m256i sum_sad = _mm256_setzero_si256(); \ |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 FSADAVG32_H(32); \ | 172 FSADAVG32_H(32); \ |
| 172 FSADAVG32_H(16); | 173 FSADAVG32_H(16); |
| 173 | 174 |
| 174 FSADAVG64; | 175 FSADAVG64; |
| 175 FSADAVG32; | 176 FSADAVG32; |
| 176 | 177 |
| 177 #undef FSADAVG64 | 178 #undef FSADAVG64 |
| 178 #undef FSADAVG32 | 179 #undef FSADAVG32 |
| 179 #undef FSADAVG64_H | 180 #undef FSADAVG64_H |
| 180 #undef FSADAVG32_H | 181 #undef FSADAVG32_H |
| OLD | NEW |