[FFmpeg-devel] [PATCH 3/4] x86: dsputilenc: convert ff_sse{8, 16}_mmx() to yasm
Michael Niedermayer
michaelni at gmx.at
Fri May 30 17:06:06 CEST 2014
On Thu, May 29, 2014 at 08:56:03PM -0700, Timothy Gu wrote:
> Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
> ---
> libavcodec/x86/dsputilenc.asm | 48 +++++++++----
> libavcodec/x86/dsputilenc_mmx.c | 145 ++++------------------------------------
> 2 files changed, 48 insertions(+), 145 deletions(-)
>
> diff --git a/libavcodec/x86/dsputilenc.asm b/libavcodec/x86/dsputilenc.asm
> index de36b95..7064024 100644
> --- a/libavcodec/x86/dsputilenc.asm
> +++ b/libavcodec/x86/dsputilenc.asm
> @@ -278,19 +278,27 @@ INIT_XMM ssse3
> %define ABS_SUM_8x8 ABS_SUM_8x8_64
> HADAMARD8_DIFF 9
>
> -INIT_XMM sse2
> -; int ff_sse16_sse2(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2,
> -; int line_size, int h);
> -cglobal sse16, 5, 5, 8
> - shr r4d, 1
> +; int ff_sse*_*(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2,
> +; int line_size, int h)
> +
> +%macro SUM_SQUARED_ERRORS 2
> +cglobal sse%1, 5,5,%2, v, pix1, pix2, lsize, h
%2 is unneeded, it can be a constant
fixed & applied
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140530/b0cf48e7/attachment.asc>
More information about the ffmpeg-devel
mailing list