[FFmpeg-cvslog] r12165 - trunk/libavcodec/dsputil.c

Rich Felker dalias
Thu Feb 21 14:22:44 CET 2008


On Thu, Feb 21, 2008 at 08:54:46AM +0100, lorenm wrote:
> Author: lorenm
> Date: Thu Feb 21 08:54:46 2008
> New Revision: 12165
> 
> Log:
> pseudo-simd add_bytes and diff_bytes
> 2x faster than scalar in 32bit, 4x faster in 64bit (as opposed to 8x in mmx)
> 
> 
> Modified:
>    trunk/libavcodec/dsputil.c
> 
> Modified: trunk/libavcodec/dsputil.c
> ==============================================================================
> --- trunk/libavcodec/dsputil.c	(original)
> +++ trunk/libavcodec/dsputil.c	Thu Feb 21 08:54:46 2008
> @@ -50,6 +50,9 @@ void ff_add_png_paeth_prediction(uint8_t
>  uint8_t ff_cropTbl[256 + 2 * MAX_NEG_CROP] = {0, };
>  uint32_t ff_squareTbl[512] = {0, };
>  
> +static const unsigned long pb_7f = 0x7f7f7f7f7f7f7f7fUL;
> +static const unsigned long pb_80 = 0x8080808080808080UL;

Wouldn't it be faster to put these constants inline in the code
instead of as 'static const'?

Rich




More information about the ffmpeg-cvslog mailing list