Commit 8ecf4b91 authored by Loren Merritt's avatar Loren Merritt

tweak ssse3 quant


git-svn-id: svn://svn.videolan.org/x264/trunk@649 df754926-b1dd-0310-bc7b-ec298dee348c
parent c266480e
......@@ -69,9 +69,8 @@ SECTION .text
%endmacro
%macro SSSE3_QUANT_1x8 3
movdqa xmm0, %1 ; load dct coeffs
movdqa xmm1, xmm0 ; save sign
pabsw xmm0, xmm0
movdqa xmm1, %1 ; load dct coeffs
pabsw xmm0, xmm1
paddusw xmm0, %3 ; round
pmulhuw xmm0, %2 ; divide
psignw xmm0, xmm1 ; restore sign
......
......@@ -77,9 +77,8 @@ SECTION .text
%endmacro
%macro SSSE3_QUANT_1x8 3
movdqa xmm0, %1 ; load dct coeffs
movdqa xmm1, xmm0 ; save sign
pabsw xmm0, xmm0
movdqa xmm1, %1 ; load dct coeffs
pabsw xmm0, xmm1
paddusw xmm0, %3 ; round
pmulhuw xmm0, %2 ; divide
psignw xmm0, xmm1 ; restore sign
......
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