[FFmpeg-cvslog] libswresample: Change FLOAT_TO_INT32_N to need 1 register less

Michael Niedermayer git at videolan.org
Sun May 13 21:21:32 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun May 13 20:44:08 2012 +0200| [57bc91c7100cf749a1c6781035bb6f1bfdb3c3e8] | committer: Michael Niedermayer

libswresample: Change FLOAT_TO_INT32_N to need 1 register less

same speed on sandy bridge

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=57bc91c7100cf749a1c6781035bb6f1bfdb3c3e8
---

 libswresample/x86/audio_convert.asm |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libswresample/x86/audio_convert.asm b/libswresample/x86/audio_convert.asm
index fcf7ac1..b423a58 100644
--- a/libswresample/x86/audio_convert.asm
+++ b/libswresample/x86/audio_convert.asm
@@ -321,12 +321,12 @@ pack_6ch_%2_to_%1_u_int %+ SUFFIX
 %macro FLOAT_TO_INT32_N 6
     mulps %1, %5
     mulps %2, %5
-    cvtps2dq  %3, %1
-    cvtps2dq  %4, %2
+    cvtps2dq  %6, %1
     cmpnltps %1, %5
+    paddd %1, %6
+    cvtps2dq  %6, %2
     cmpnltps %2, %5
-    paddd %1, %3
-    paddd %2, %4
+    paddd %2, %6
 %endmacro
 
 %macro INT16_TO_FLOAT_INIT 6



More information about the ffmpeg-cvslog mailing list