Re: [FFmpeg-devel] [PATCH 1/4] libavutil: Add saturating subtraction functions

2017-12-03 Thread Rostislav Pehlivanov
On 2 December 2017 at 17:36, Andrew D'Addesio wrote: > 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 > --- > libavutil/arm/intmath.h | 16 > l

Re: [FFmpeg-devel] [PATCH 1/4] libavutil: Add saturating subtraction functions

2017-12-03 Thread Michael Niedermayer
On Sat, Dec 02, 2017 at 11:46:56AM -0600, Andrew D'Addesio wrote: > 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 > --- > libavutil/arm/intmath.h | 16

[FFmpeg-devel] [PATCH 1/4] libavutil: Add saturating subtraction functions

2017-12-02 Thread Andrew D'Addesio
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 --- libavutil/arm/intmath.h | 16 libavutil/common.h | 32 +++- 2 files c

[FFmpeg-devel] [PATCH 1/4] libavutil: Add saturating subtraction functions

2017-12-02 Thread Andrew D'Addesio
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 --- libavutil/arm/intmath.h | 16 libavutil/common.h | 32 +++- 2 files c