chromium/third_party/libvpx/source/libvpx/vpx_dsp/x86/sad4d_avx2.c

/*
 *  Copyright (c) 2014 The WebM project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */
#include <immintrin.h>  // AVX2
#include "./vpx_dsp_rtcd.h"
#include "vpx/vpx_integer.h"

// Note with sums[4] some versions of Visual Studio may fail due to parameter
// alignment, though the functions should be equivalent:
// error C2719: 'sums': formal parameter with requested alignment of 32 won't be
// aligned
static INLINE void calc_final_4(const __m256i *const sums /*[4]*/,
                                uint32_t sad_array[4]) {}

static INLINE void sad32xhx4d_avx2(const uint8_t *src_ptr, int src_stride,
                                   const uint8_t *const ref_array[4],
                                   int ref_stride, int h,
                                   uint32_t sad_array[4]) {}

static INLINE void sad64xhx4d_avx2(const uint8_t *src_ptr, int src_stride,
                                   const uint8_t *const ref_array[4],
                                   int ref_stride, int h,
                                   uint32_t sad_array[4]) {}

#define SAD64_H(h)

#define SAD32_H(h)

SAD64_H()
SAD32_H()

#define SADS64_H(h)

#define SADS32_H(h)

SADS64_H()
SADS64_H()

SADS32_H()
SADS32_H()
SADS32_H()