libavutil: Add saturating subtraction functions
authorAndrew D'Addesio <modchipv12@gmail.com>
Sat, 2 Dec 2017 17:36:24 +0000 (11:36 -0600)
committerRostislav Pehlivanov <atomnuker@gmail.com>
Mon, 4 Dec 2017 07:28:45 +0000 (07:28 +0000)
commit9b45bcf713e0bc30fff7d1e6c2facb539c27ec28
treec49487b5946627050034b3774111bca3b637c77e
parentb73304f79eba9164162c7faf2c2d06e60728893c
libavutil: Add saturating subtraction functions

Add av_sat_sub32 and av_sat_dsub32 as the subtraction analogues to
av_sat_add32/av_sat_dadd32.

Also clarify the formulas for dadd32/dsub32.

Signed-off-by: Andrew D'Addesio <modchipv12@gmail.com>
libavutil/arm/intmath.h
libavutil/common.h
libavutil/version.h