diff options
author | James Almer <jamrial@gmail.com> | 2014-09-22 21:55:13 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2014-09-22 22:35:03 -0300 |
commit | 6b2caa321fc2539c937978e040fab139d5823857 (patch) | |
tree | 5760f7f107cf385cdf45bea582036252797a57a3 /libavcodec/x86/constants.c | |
parent | 22844132069ebd2c0b2ac4e7b41c93c33890bfb9 (diff) | |
download | ffmpeg-6b2caa321fc2539c937978e040fab139d5823857.tar.gz |
x86/vp9: 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>
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 5d2c2372da..aa3df00633 100644 --- a/libavcodec/x86/constants.c +++ b/libavcodec/x86/constants.c @@ -41,7 +41,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_1024) = { 0x0400040004000400ULL, 0x0400040004000400ULL }; |