Commit 9e0e1f90 authored by James Almer's avatar James Almer Committed by Michael Niedermayer

x86/dsputil: add emms to ff_scalarproduct_int16_mmxext()

Also undo the changes to ra144enc.c from previous commits.
Should fix ticket #3429
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 69ead9af
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include "mathops.h" #include "mathops.h"
#include "put_bits.h" #include "put_bits.h"
#include "ra144.h" #include "ra144.h"
#include "libavutil/x86/cpu.h"
static av_cold int ra144_encode_close(AVCodecContext *avctx) static av_cold int ra144_encode_close(AVCodecContext *avctx)
{ {
...@@ -376,8 +375,6 @@ static void ra144_encode_subblock(RA144Context *ractx, ...@@ -376,8 +375,6 @@ static void ra144_encode_subblock(RA144Context *ractx,
ff_copy_and_dup(ractx->buffer_a, ractx->adapt_cb, cba_idx + BLOCKSIZE / 2 - 1); ff_copy_and_dup(ractx->buffer_a, ractx->adapt_cb, cba_idx + BLOCKSIZE / 2 - 1);
m[0] = (ff_irms(&ractx->dsp, ractx->buffer_a) * rms) >> 12; m[0] = (ff_irms(&ractx->dsp, ractx->buffer_a) * rms) >> 12;
if (!EXTERNAL_SSE2(av_get_cpu_flags()))
emms_c();
} }
fixed_cb_search(work + LPC_ORDER, coefs, data, cba_idx, &cb1_idx, &cb2_idx); fixed_cb_search(work + LPC_ORDER, coefs, data, cba_idx, &cb1_idx, &cb2_idx);
for (i = 0; i < BLOCKSIZE; i++) { for (i = 0; i < BLOCKSIZE; i++) {
......
...@@ -61,6 +61,9 @@ cglobal scalarproduct_int16, 3,3,3, v1, v2, order ...@@ -61,6 +61,9 @@ cglobal scalarproduct_int16, 3,3,3, v1, v2, order
%endif %endif
paddd m2, m0 paddd m2, m0
movd eax, m2 movd eax, m2
%if mmsize == 8
emms
%endif
RET RET
; int scalarproduct_and_madd_int16(int16_t *v1, int16_t *v2, int16_t *v3, int order, int mul) ; int scalarproduct_and_madd_int16(int16_t *v1, int16_t *v2, int16_t *v3, int order, int mul)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment