[FFmpeg-cvslog] avcodec/x86/mpegaudiodsp: Remove obsolete SSE function

Andreas Rheinhardt git at videolan.org
Wed Jun 22 15:29:36 EEST 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Jun 14 20:21:03 2022 +0200| [25e39f8c727190520e1274be9bf0b4b3302587f9] | committer: Andreas Rheinhardt

avcodec/x86/mpegaudiodsp: Remove obsolete SSE function

The only systems which benefit from imdct36_blocks_sse are truely
ancient 32bit x86s as all other systems use at least the SSE2 versions
(this includes all x64 cpus (which is why this code is restricted
to x86-32)).

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 libavcodec/x86/imdct36.asm    |  5 -----
 libavcodec/x86/mpegaudiodsp.c | 11 -----------
 2 files changed, 16 deletions(-)

diff --git a/libavcodec/x86/imdct36.asm b/libavcodec/x86/imdct36.asm
index b386ab95fc..888c6bf4d6 100644
--- a/libavcodec/x86/imdct36.asm
+++ b/libavcodec/x86/imdct36.asm
@@ -373,11 +373,6 @@ cglobal imdct36_float, 4,4,9, out, buf, in, win
     RET
 %endmacro
 
-%if ARCH_X86_32
-INIT_XMM sse
-DEFINE_IMDCT
-%endif
-
 INIT_XMM sse2
 DEFINE_IMDCT
 
diff --git a/libavcodec/x86/mpegaudiodsp.c b/libavcodec/x86/mpegaudiodsp.c
index dcea94a1f5..6586fe0726 100644
--- a/libavcodec/x86/mpegaudiodsp.c
+++ b/libavcodec/x86/mpegaudiodsp.c
@@ -34,9 +34,6 @@ static void imdct36_blocks_ ## CPU(float *out, float *buf, float *in, int count,
 void ff_imdct36_float_ ## CPU(float *out, float *buf, float *in, float *win);
 
 #if HAVE_X86ASM
-#if ARCH_X86_32
-DECL(sse)
-#endif
 DECL(sse2)
 DECL(sse3)
 DECL(ssse3)
@@ -230,9 +227,6 @@ static void imdct36_blocks_ ## CPU1(float *out, float *buf, float *in,      \
 }
 
 #if HAVE_SSE
-#if ARCH_X86_32
-DECL_IMDCT_BLOCKS(sse,sse)
-#endif
 DECL_IMDCT_BLOCKS(sse2,sse)
 DECL_IMDCT_BLOCKS(sse3,sse)
 DECL_IMDCT_BLOCKS(ssse3,sse)
@@ -271,11 +265,6 @@ av_cold void ff_mpadsp_init_x86(MPADSPContext *s)
 
 #if HAVE_X86ASM
 #if HAVE_SSE
-#if ARCH_X86_32
-    if (EXTERNAL_SSE(cpu_flags)) {
-        s->imdct36_blocks_float = imdct36_blocks_sse;
-    }
-#endif
     if (EXTERNAL_SSE2(cpu_flags)) {
         s->imdct36_blocks_float = imdct36_blocks_sse2;
     }



More information about the ffmpeg-cvslog mailing list