Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
x86/hevc: get rid off packusdw for ssse3 compatibility
  • Loading branch information
mraulet committed Aug 25, 2014
1 parent 2c0f64c commit df8ebe3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions libavcodec/x86/hevc_mc.asm
Expand Up @@ -1133,7 +1133,7 @@ cglobal hevc_put_hevc_uni_qpel_v%1_%2, 7, 9, 15, dst, dststride, src, srcstride,
QPEL_V_LOAD %2, srcq, srcstride, %1, r8
QPEL_COMPUTE %1, %2
%if %2 > 8
packusdw m0, m1
packssdw m0, m1
%endif
UNI_COMPUTE %1, %2, m0, m1, m9
PEL_%2STORE%1 dstq, m0, m1
Expand Down Expand Up @@ -1466,11 +1466,12 @@ cglobal hevc_put_hevc_uni_w%1_%2, 6, 6, 7, dst, dststride, src, srcstride, heigh
paddd m0, m3
paddd m1, m3
%endif
packusdw m0, m1
packssdw m0, m1
%if %2 == 8
packuswb m0, m0
%else
pminsw m0, [max_pixels_%2]
pmaxsw m0, [zero]
%endif
PEL_%2STORE%1 dstq, m0, m1
add dstq, dststrideq ; dst += dststride
Expand Down Expand Up @@ -1537,11 +1538,12 @@ cglobal hevc_put_hevc_bi_w%1_%2, 6, 7, 10, dst, dststride, src, srcstride, src2,
psrad m0, m5
psrad m1, m5
%endif
packusdw m0, m1
packssdw m0, m1
%if %2 == 8
packuswb m0, m0
%else
pminsw m0, [max_pixels_%2]
pmaxsw m0, [zero]
%endif
PEL_%2STORE%1 dstq, m0, m1
add dstq, dststrideq ; dst += dststride
Expand Down

0 comments on commit df8ebe3

Please sign in to comment.