sad_hwy_avx2.cc (1029B)
1 /* 2 * Copyright (c) 2016, Alliance for Open Media. All rights reserved. 3 * 4 * This source code is subject to the terms of the BSD 2 Clause License and 5 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License 6 * was not distributed with this source code in the LICENSE file, you can 7 * obtain it at www.aomedia.org/license/software. If the Alliance for Open 8 * Media Patent License 1.0 was not distributed with this source code in the 9 * PATENTS file, you can obtain it at www.aomedia.org/license/patent. 10 */ 11 12 #define HWY_BASELINE_TARGETS HWY_AVX2 13 #define HWY_BROKEN_32BIT 0 14 15 #include "aom_dsp/sad_hwy.h" 16 17 // FSAD_4D, FSAD_3D and FSAD_4D_SKIP have similar performance, but migrating 18 // to highway adds test coverage and simplifies avx2 when it's enabled by 19 // default. 20 FOR_EACH_SAD_BLOCK_SIZE(FSAD, avx2) 21 FOR_EACH_SAD_BLOCK_SIZE(FSAD_SKIP, avx2) 22 FOR_EACH_SAD_BLOCK_SIZE(FSAD_AVG, avx2) 23 FOR_EACH_SAD_BLOCK_SIZE(FSAD_4D, avx2) 24 FOR_EACH_SAD_BLOCK_SIZE(FSAD_4D_SKIP, avx2) 25 FOR_EACH_SAD_BLOCK_SIZE(FSAD_3D, avx2)