[x264-devel] Remove high bit depth mmx quant

Holger Lubitz git at videolan.org
Wed Jan 26 02:56:55 CET 2011


x264 | branch: master | Holger Lubitz <holger at lubitz.org> | Fri Jan 21 19:13:57 2011 +0100| [4c92c105e995884f3780a5e886fd1e11f2ec3b92] | committer: Jason Garrett-Glaser

Remove high bit depth mmx quant
It was using pmuludq which is sse2, and the function isn't really possible without pmuludq.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=4c92c105e995884f3780a5e886fd1e11f2ec3b92
---

 common/quant.c         |    7 -------
 common/x86/quant-a.asm |    5 -----
 2 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/common/quant.c b/common/quant.c
index c4b39e2..d723242 100644
--- a/common/quant.c
+++ b/common/quant.c
@@ -287,15 +287,8 @@ void x264_quant_init( x264_t *h, int cpu, x264_quant_function_t *pf )
 
 #if HIGH_BIT_DEPTH
 #if HAVE_MMX
-    if( cpu&X264_CPU_MMX )
-    {
-        pf->quant_4x4 = x264_quant_4x4_mmx;
-        pf->quant_8x8 = x264_quant_8x8_mmx;
-    }
     if( cpu&X264_CPU_MMXEXT )
     {
-        pf->quant_2x2_dc = x264_quant_2x2_dc_mmxext;
-        pf->quant_4x4_dc = x264_quant_4x4_dc_mmxext;
 #if ARCH_X86
         pf->denoise_dct = x264_denoise_dct_mmx;
         pf->decimate_score15 = x264_decimate_score15_mmxext;
diff --git a/common/x86/quant-a.asm b/common/x86/quant-a.asm
index c4a652f..98beb9d 100644
--- a/common/x86/quant-a.asm
+++ b/common/x86/quant-a.asm
@@ -321,11 +321,6 @@ cglobal quant_%1x%2_%3, 3,3,8*(mmsize/16)
 %define QUANT_END QUANT_END_MMX
 %define PABSD PABSD_MMX
 %define PSIGND PSIGND_MMX
-INIT_MMX
-QUANT_DC 2, 2, mmxext
-QUANT_DC 4, 4, mmxext
-QUANT_AC 4, 4, mmx
-QUANT_AC 8, 8, mmx
 INIT_XMM
 QUANT_DC 2, 2, sse2
 QUANT_DC 4, 4, sse2



More information about the x264-devel mailing list