changeset 12143:fa452b243aa6 libavcodec

Make ff_pw_4 128 bits
author conrad
date Sun, 11 Jul 2010 22:52:55 +0000
parents 7e93f85e48bf
children 846779f6b164
files x86/cavsdsp_mmx.c x86/dsputil_h264_template_ssse3.c x86/dsputil_mmx.c x86/dsputil_mmx.h
diffstat 4 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/x86/cavsdsp_mmx.c	Sun Jul 11 22:52:51 2010 +0000
+++ b/x86/cavsdsp_mmx.c	Sun Jul 11 22:52:55 2010 +0000
@@ -118,7 +118,7 @@
     for(i=0; i<2; i++){
         DECLARE_ALIGNED(8, uint64_t, tmp);
 
-        cavs_idct8_1d(block+4*i, ff_pw_4);
+        cavs_idct8_1d(block+4*i, ff_pw_4.a);
 
         __asm__ volatile(
             "psraw     $3, %%mm7  \n\t"
--- a/x86/dsputil_h264_template_ssse3.c	Sun Jul 11 22:52:51 2010 +0000
+++ b/x86/dsputil_h264_template_ssse3.c	Sun Jul 11 22:52:55 2010 +0000
@@ -43,7 +43,7 @@
             "pshuflw $0, %%xmm7, %%xmm7 \n\t"
             "movlhps %%xmm6, %%xmm6 \n\t"
             "movlhps %%xmm7, %%xmm7 \n\t"
-            :: "r"(255*(x+y)+8), "m"(*(rnd?&ff_pw_4:&ff_pw_3))
+            :: "r"(255*(x+y)+8), "m"(*(rnd?&ff_pw_4.a:&ff_pw_3))
         );
 
         if(x) {
--- a/x86/dsputil_mmx.c	Sun Jul 11 22:52:51 2010 +0000
+++ b/x86/dsputil_mmx.c	Sun Jul 11 22:52:55 2010 +0000
@@ -47,7 +47,7 @@
 {0x8000000080000000ULL, 0x8000000080000000ULL};
 
 DECLARE_ALIGNED(8,  const uint64_t, ff_pw_3  ) = 0x0003000300030003ULL;
-DECLARE_ALIGNED(8,  const uint64_t, ff_pw_4  ) = 0x0004000400040004ULL;
+DECLARE_ALIGNED(16, const xmm_reg,  ff_pw_4  ) = {0x0004000400040004ULL, 0x0004000400040004ULL};
 DECLARE_ALIGNED(16, const xmm_reg,  ff_pw_5  ) = {0x0005000500050005ULL, 0x0005000500050005ULL};
 DECLARE_ALIGNED(16, const xmm_reg,  ff_pw_8  ) = {0x0008000800080008ULL, 0x0008000800080008ULL};
 DECLARE_ALIGNED(8,  const uint64_t, ff_pw_15 ) = 0x000F000F000F000FULL;
--- a/x86/dsputil_mmx.h	Sun Jul 11 22:52:51 2010 +0000
+++ b/x86/dsputil_mmx.h	Sun Jul 11 22:52:55 2010 +0000
@@ -33,7 +33,7 @@
 extern const uint64_t ff_pdw_80000000[2];
 
 extern const uint64_t ff_pw_3;
-extern const uint64_t ff_pw_4;
+extern const xmm_reg  ff_pw_4;
 extern const xmm_reg  ff_pw_5;
 extern const xmm_reg  ff_pw_8;
 extern const uint64_t ff_pw_15;