FFmpeg/libavcodec
Linjie Fu 8b8492452d 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>
2020-03-27 10:57:40 +01:00
..
2019-12-12 19:25:33 +01:00
2020-02-07 13:36:57 -03:00
2020-02-07 13:36:57 -03:00
2020-03-17 16:03:39 +01:00
2020-03-17 16:07:25 +01:00
2020-02-19 20:48:49 +11:00
2019-12-26 22:22:33 +01:00
2020-03-18 00:58:07 -03:00
2019-12-26 16:06:25 +01:00
2020-03-17 16:07:25 +01:00
2020-03-12 20:26:48 +00:00
2020-03-12 20:26:48 +00:00
2020-03-12 20:26:48 +00:00
2020-03-17 16:05:15 +01:00
2019-11-13 09:08:43 -08:00
2020-02-22 00:15:43 +01:00
2019-12-05 20:20:05 +01:00
2020-03-22 11:55:44 -03:00
2020-01-22 21:50:49 +01:00
2020-03-17 16:07:25 +01:00
2020-03-17 16:07:25 +01:00
2019-11-28 10:21:20 -03:00
2020-03-17 16:07:25 +01:00
2020-02-04 11:35:02 +01:00
2020-03-17 22:46:36 +01:00
2019-12-10 16:09:14 +01:00
2020-01-11 23:31:18 +01:00
2019-11-25 00:07:07 +01:00
2020-03-17 22:46:36 +01:00
2020-02-03 23:59:07 +01:00
2019-12-14 09:49:58 +01:00
2019-10-22 10:51:42 +08:00
2020-02-19 22:37:30 +01:00
2020-01-30 19:57:25 +01:00
2019-12-31 18:43:50 +01:00
2020-01-13 23:26:25 +00:00
2020-01-13 23:26:25 +00:00
2019-11-09 17:59:03 +01:00
2020-02-01 21:39:05 +00:00
2020-01-11 23:31:18 +01:00
2020-03-17 16:07:25 +01:00
2020-03-16 09:27:17 +01:00
2019-10-25 00:22:33 +02:00
2020-03-22 11:55:44 -03:00