[FFmpeg-devel] [PATCH] Add x86-optimized versions of exponent_min().

Diego Biurrun diego
Fri Jan 28 23:52:05 CET 2011


On Fri, Jan 28, 2011 at 05:04:33PM -0500, Justin Ruggles wrote:
> 
> New patch attached. I hope this is what you mean.
> --- /dev/null
> +++ b/libavcodec/ac3dsp.c
> @@ -0,0 +1,51 @@
> --- /dev/null
> +++ b/libavcodec/ac3dsp.h
> @@ -0,0 +1,44 @@
> +
> +void ff_ac3dsp_init(AC3DSPContext* c);
> +void ff_ac3dsp_init_x86(AC3DSPContext* c);

nit: *c

> --- /dev/null
> +++ b/libavcodec/x86/ac3dsp_mmx.c
> @@ -0,0 +1,47 @@
> +
> +#if HAVE_YASM
> +extern void ff_ac3_exponent_min_mmx   (uint8_t *exp, int num_reuse_blocks, int nb_coefs);
> +extern void ff_ac3_exponent_min_mmxext(uint8_t *exp, int num_reuse_blocks, int nb_coefs);
> +extern void ff_ac3_exponent_min_sse2  (uint8_t *exp, int num_reuse_blocks, int nb_coefs);
> +#endif

#ifdefs around extern declarations are unnecessary.

Diego



More information about the ffmpeg-devel mailing list