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

Side by Side Diff: source/libvpx/vpx_dsp/x86/sad_avx2.c

Issue 1162573005: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « source/libvpx/vpx_dsp/x86/sad4d_avx2.c ('k') | source/libvpx/vpx_dsp/x86/variance_avx2.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « source/libvpx/vpx_dsp/x86/sad4d_avx2.c ('k') | source/libvpx/vpx_dsp/x86/variance_avx2.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698