[x264-devel] [PATCH 2/2] ppc: Properly initialize vectors in sad_x4_8x#

BugMaster BugMaster at narod.ru
Thu Aug 15 19:30:55 CEST 2019


On Thu, 15 Aug 2019 04:58:58 +0000, Michail Alvanos wrote:
> ---
>  common/ppc/pixel.c | 1 +
>  1 file changed, 1 insertion(+)

> diff --git a/common/ppc/pixel.c b/common/ppc/pixel.c
> index f94029e3..abcfa41b 100644
> --- a/common/ppc/pixel.c
> +++ b/common/ppc/pixel.c
> @@ -981,6 +981,7 @@ static int name( uint8_t *fenc,
>      sum0v = vec_splat_s32( 0 );                                   
>      sum1v = vec_splat_s32( 0 );                                   
>      sum2v = vec_splat_s32( 0 );                                   
> +    sum3v = vec_splat_s32( 0 );                                   
>                                                                    
>      for( int y = 0; y < ly; y++ )                                 
>      {                                                             

Hi.

Do I understand correctly than sum0, sum1, sum2 are not used in this
function and so can be safely removed? i.e. this lines:
    ALIGNED_16( int sum0 );                                                           \
    ALIGNED_16( int sum1 );                                                           \
    ALIGNED_16( int sum2 );                                                           \



More information about the x264-devel mailing list