mirror of https://github.com/FFmpeg/FFmpeg.git
Adding instead of subtracting the products in the loop allows the compiler to generate more efficient multiply-accumulate instructions when 16-bit multiply-subtract is not available. ARM has only multiply-accumulate for 16-bit operands. In general, if only one variant exists, it is usually accumulate rather than subtract. In the same spirit, using the dedicated saturation function enables use of any special optimised versions of this. Signed-off-by: Mans Rullgard <mans@mansr.com>pull/28/head
parent
6c4975eaaf
commit
fddc5b9bea
1 changed files with 7 additions and 8 deletions
Loading…
Reference in new issue