diff options
author | James Almer <jamrial@gmail.com> | 2014-09-22 21:55:13 -0300 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-08-03 11:00:08 +0200 |
commit | 67922b4ee48b5a5850ebf2cb6fcddf5979a26f68 (patch) | |
tree | 4b0d400f0b61b00b426671a72ebe6dbf2b8aa02a /libavcodec/x86/constants.c | |
parent | 3cda179f180e48cda9afee9b1875f10e89a848a6 (diff) | |
download | ffmpeg-67922b4ee48b5a5850ebf2cb6fcddf5979a26f68.tar.gz |
vp9mc/x86: add AVX and AVX2 MC
Roughly 25% faster MC than ssse3 for blocksizes 32 and 64.
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/x86/constants.c')
-rw-r--r-- | libavcodec/x86/constants.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/x86/constants.c b/libavcodec/x86/constants.c index 47f6ef53ae..6f7dd7346e 100644 --- a/libavcodec/x86/constants.c +++ b/libavcodec/x86/constants.c @@ -43,7 +43,8 @@ DECLARE_ALIGNED(16, const xmm_reg, ff_pw_64) = { 0x0040004000400040ULL, 0x004 DECLARE_ALIGNED(8, const uint64_t, ff_pw_96) = 0x0060006000600060ULL; DECLARE_ALIGNED(8, const uint64_t, ff_pw_128) = 0x0080008000800080ULL; DECLARE_ALIGNED(8, const uint64_t, ff_pw_255) = 0x00ff00ff00ff00ffULL; -DECLARE_ALIGNED(16, const xmm_reg, ff_pw_256) = { 0x0100010001000100ULL, 0x0100010001000100ULL }; +DECLARE_ALIGNED(32, const ymm_reg, ff_pw_256) = { 0x0100010001000100ULL, 0x0100010001000100ULL, + 0x0100010001000100ULL, 0x0100010001000100ULL }; DECLARE_ALIGNED(16, const xmm_reg, ff_pw_512) = { 0x0200020002000200ULL, 0x0200020002000200ULL }; DECLARE_ALIGNED(16, const xmm_reg, ff_pw_1019) = { 0x03FB03FB03FB03FBULL, 0x03FB03FB03FB03FBULL }; DECLARE_ALIGNED(16, const xmm_reg, ff_pw_m1) = { 0xFFFFFFFFFFFFFFFFULL, 0xFFFFFFFFFFFFFFFFULL }; |