Commit 57bc91c7 authored by Michael Niedermayer's avatar Michael Niedermayer

libswresample: Change FLOAT_TO_INT32_N to need 1 register less

same speed on sandy bridge
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ecfdd125
...@@ -321,12 +321,12 @@ pack_6ch_%2_to_%1_u_int %+ SUFFIX ...@@ -321,12 +321,12 @@ pack_6ch_%2_to_%1_u_int %+ SUFFIX
%macro FLOAT_TO_INT32_N 6 %macro FLOAT_TO_INT32_N 6
mulps %1, %5 mulps %1, %5
mulps %2, %5 mulps %2, %5
cvtps2dq %3, %1 cvtps2dq %6, %1
cvtps2dq %4, %2
cmpnltps %1, %5 cmpnltps %1, %5
paddd %1, %6
cvtps2dq %6, %2
cmpnltps %2, %5 cmpnltps %2, %5
paddd %1, %3 paddd %2, %6
paddd %2, %4
%endmacro %endmacro
%macro INT16_TO_FLOAT_INIT 6 %macro INT16_TO_FLOAT_INIT 6
......
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