Re: [FFmpeg-devel] [PATCH 01/15] avutil/common: Add macro for left-shifting

2019-09-26 Thread Michael Niedermayer
On Wed, Sep 25, 2019 at 12:02:56AM +0200, Andreas Rheinhardt wrote: > Left shifting a negative integer is undefined, yet often needed. > Therefore add a macro that internally uses multiplication by powers of > two to make it clear that a shift is intended. > > Signed-off-by: Andreas Rheinhardt >

[FFmpeg-devel] [PATCH 01/15] avutil/common: Add macro for left-shifting

2019-09-24 Thread Andreas Rheinhardt
Left shifting a negative integer is undefined, yet often needed. Therefore add a macro that internally uses multiplication by powers of two to make it clear that a shift is intended. Signed-off-by: Andreas Rheinhardt --- I don't insist on this macro. I only added it so that one can easily see tha