diff mbox series

[FFmpeg-devel,09/15] avcodec/x86/diracdsp_init: Simplify macro

Message ID 20210219075022.2445161-9-andreas.rheinhardt@gmail.com
State Accepted
Commit 0f317eb8e70e734cce2b3dda7f850f7a334461fb
Headers show
Series [FFmpeg-devel,01/15] avformat/asf: Move ff_asf_audio_conceal_none to its only user
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt Feb. 19, 2021, 7:50 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavcodec/x86/diracdsp_init.c | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/x86/diracdsp_init.c b/libavcodec/x86/diracdsp_init.c
index cd663f2d23..8633c66743 100644
--- a/libavcodec/x86/diracdsp_init.c
+++ b/libavcodec/x86/diracdsp_init.c
@@ -67,29 +67,29 @@  void ff_dequant_subband_32_sse4(uint8_t *src, uint8_t *dst, ptrdiff_t stride, co
     c->PFX ## _dirac_pixels_tab[1][IDX] = PFX ## _dirac_pixels16_ ## EXT; \
     c->PFX ## _dirac_pixels_tab[2][IDX] = PFX ## _dirac_pixels32_ ## EXT
 
-#define DIRAC_PIXOP(OPNAME2, OPNAME, EXT)\
-static void OPNAME2 ## _dirac_pixels16_ ## EXT(uint8_t *dst, const uint8_t *src[5], \
-                                               int stride, int h) \
+#define DIRAC_PIXOP(OPNAME, EXT)\
+static void OPNAME ## _dirac_pixels16_ ## EXT(uint8_t *dst, const uint8_t *src[5], \
+                                              int stride, int h) \
 {\
     if (h&3)\
-        ff_ ## OPNAME2 ## _dirac_pixels16_c(dst, src, stride, h);\
+        ff_ ## OPNAME ## _dirac_pixels16_c(dst, src, stride, h);\
     else\
-        OPNAME ## _pixels16_ ## EXT(dst, src[0], stride, h);\
+        ff_ ## OPNAME ## _pixels16_ ## EXT(dst, src[0], stride, h);\
 }\
-static void OPNAME2 ## _dirac_pixels32_ ## EXT(uint8_t *dst, const uint8_t *src[5], \
-                                               int stride, int h) \
+static void OPNAME ## _dirac_pixels32_ ## EXT(uint8_t *dst, const uint8_t *src[5], \
+                                              int stride, int h) \
 {\
     if (h&3) {\
-        ff_ ## OPNAME2 ## _dirac_pixels32_c(dst, src, stride, h);\
+        ff_ ## OPNAME ## _dirac_pixels32_c(dst, src, stride, h);\
     } else {\
-        OPNAME ## _pixels16_ ## EXT(dst   , src[0]   , stride, h);\
-        OPNAME ## _pixels16_ ## EXT(dst+16, src[0]+16, stride, h);\
+        ff_ ## OPNAME ## _pixels16_ ## EXT(dst   , src[0]   , stride, h);\
+        ff_ ## OPNAME ## _pixels16_ ## EXT(dst+16, src[0]+16, stride, h);\
     }\
 }
 
-DIRAC_PIXOP(put, ff_put, mmx)
-DIRAC_PIXOP(avg, ff_avg, mmx)
-DIRAC_PIXOP(avg, ff_avg, mmxext)
+DIRAC_PIXOP(put, mmx)
+DIRAC_PIXOP(avg, mmx)
+DIRAC_PIXOP(avg, mmxext)
 
 static void put_dirac_pixels16_sse2(uint8_t *dst, const uint8_t *src[5],
                                     int stride, int h)