diff options
author | Linjie Fu <linjie.fu@intel.com> | 2020-03-05 15:48:09 +0800 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-03-27 10:57:40 +0100 |
commit | 8b8492452d53293b2ac8c842877fadf7925fc950 (patch) | |
tree | 51ad477ae083df79665e2727cdf6ac64f9356f68 /libavcodec/mips/hevcdsp_msa.c | |
parent | e9abef437f0a348c017d4ac8b23a122881c1dc87 (diff) | |
download | ffmpeg-8b8492452d53293b2ac8c842877fadf7925fc950.tar.gz |
lavc/x86/hevc_add_res: Fix coeff overflow in ADD_RES_SSE_16_32_8
Fix overflow for coeff -32768 in function ADD_RES_SSE_16_32_8 with no
performance drop.(SSE2/AVX/AVX2)
./checkasm --test=hevc_add_res --bench
Mainline:
- hevc_add_res.add_residual [OK]
hevc_add_res_32x32_8_sse2: 127.5
hevc_add_res_32x32_8_avx: 127.0
hevc_add_res_32x32_8_avx2: 86.5
Add overflow test case:
- hevc_add_res.add_residual [FAILED]
After:
- hevc_add_res.add_residual [OK]
hevc_add_res_32x32_8_sse2: 126.8
hevc_add_res_32x32_8_avx: 128.3
hevc_add_res_32x32_8_avx2: 86.8
Signed-off-by: Xu Guangxin <guangxin.xu@intel.com>
Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/mips/hevcdsp_msa.c')
0 files changed, 0 insertions, 0 deletions