diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-01-12 19:59:08 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-02-02 17:03:13 +0100 |
commit | 4afe61ea6c1568fce223287306ff40610d0ebecd (patch) | |
tree | 8be3eff7e726c421fff26257efa5a6295202cfdb | |
parent | 3797e9239e6e1f2ef42fb4a5390b640183b5f131 (diff) | |
download | ffmpeg-4afe61ea6c1568fce223287306ff40610d0ebecd.tar.gz |
swscale/x86/swscale: Make M24 variables static
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libswscale/x86/swscale.c | 6 | ||||
-rw-r--r-- | libswscale/x86/swscale_template.c | 18 |
2 files changed, 12 insertions, 12 deletions
diff --git a/libswscale/x86/swscale.c b/libswscale/x86/swscale.c index ea82fa81a9..e9ad2a1e95 100644 --- a/libswscale/x86/swscale.c +++ b/libswscale/x86/swscale.c @@ -43,9 +43,9 @@ const DECLARE_ALIGNED(8, uint64_t, ff_dither8)[2] = { DECLARE_ASM_CONST(8, uint64_t, bF8)= 0xF8F8F8F8F8F8F8F8LL; DECLARE_ASM_CONST(8, uint64_t, bFC)= 0xFCFCFCFCFCFCFCFCLL; -DECLARE_ASM_ALIGNED(8, const uint64_t, ff_M24A) = 0x00FF0000FF0000FFLL; -DECLARE_ASM_ALIGNED(8, const uint64_t, ff_M24B) = 0xFF0000FF0000FF00LL; -DECLARE_ASM_ALIGNED(8, const uint64_t, ff_M24C) = 0x0000FF0000FF0000LL; +DECLARE_ASM_CONST(8, uint64_t, M24A) = 0x00FF0000FF0000FFLL; +DECLARE_ASM_CONST(8, uint64_t, M24B) = 0xFF0000FF0000FF00LL; +DECLARE_ASM_CONST(8, uint64_t, M24C) = 0x0000FF0000FF0000LL; // MMXEXT versions #if HAVE_MMXEXT_INLINE diff --git a/libswscale/x86/swscale_template.c b/libswscale/x86/swscale_template.c index e09310ab91..cdf8a6105f 100644 --- a/libswscale/x86/swscale_template.c +++ b/libswscale/x86/swscale_template.c @@ -541,8 +541,8 @@ static void RENAME(yuv2rgb555_X)(SwsInternal *c, const int16_t *lumFilter, #define WRITEBGR24MMXEXT(dst, dstw, index) \ /* mm2=B, %%mm4=G, %%mm5=R, %%mm7=0 */\ - "movq "MANGLE(ff_M24A)", %%mm0 \n\t"\ - "movq "MANGLE(ff_M24C)", %%mm7 \n\t"\ + "movq "MANGLE(M24A)", %%mm0 \n\t"\ + "movq "MANGLE(M24C)", %%mm7 \n\t"\ "pshufw $0x50, %%mm2, %%mm1 \n\t" /* B3 B2 B3 B2 B1 B0 B1 B0 */\ "pshufw $0x50, %%mm4, %%mm3 \n\t" /* G3 G2 G3 G2 G1 G0 G1 G0 */\ "pshufw $0x00, %%mm5, %%mm6 \n\t" /* R1 R0 R1 R0 R1 R0 R1 R0 */\ @@ -561,7 +561,7 @@ static void RENAME(yuv2rgb555_X)(SwsInternal *c, const int16_t *lumFilter, "pshufw $0x55, %%mm4, %%mm3 \n\t" /* G4 G3 G4 G3 G4 G3 G4 G3 */\ "pshufw $0xA5, %%mm5, %%mm6 \n\t" /* R5 R4 R5 R4 R3 R2 R3 R2 */\ \ - "pand "MANGLE(ff_M24B)", %%mm1 \n\t" /* B5 B4 B3 */\ + "pand "MANGLE(M24B)", %%mm1 \n\t" /* B5 B4 B3 */\ "pand %%mm7, %%mm3 \n\t" /* G4 G3 */\ "pand %%mm0, %%mm6 \n\t" /* R4 R3 R2 */\ \ @@ -575,7 +575,7 @@ static void RENAME(yuv2rgb555_X)(SwsInternal *c, const int16_t *lumFilter, \ "pand %%mm7, %%mm1 \n\t" /* B7 B6 */\ "pand %%mm0, %%mm3 \n\t" /* G7 G6 G5 */\ - "pand "MANGLE(ff_M24B)", %%mm6 \n\t" /* R7 R6 R5 */\ + "pand "MANGLE(M24B)", %%mm6 \n\t" /* R7 R6 R5 */\ \ "por %%mm1, %%mm3 \n\t"\ "por %%mm3, %%mm6 \n\t"\ @@ -611,7 +611,7 @@ static void RENAME(yuv2bgr24_X_ar)(SwsInternal *c, const int16_t *lumFilter, :: "r" (&c->redDither), "m" (dummy), "m" (dummy), "m" (dummy), "r" (dest), "m" (dstW_reg), "m"(uv_off) - NAMED_CONSTRAINTS_ADD(ff_M24A,ff_M24C,ff_M24B) + NAMED_CONSTRAINTS_ADD(M24A,M24C,M24B) : "%"FF_REG_a, "%"FF_REG_c, "%"FF_REG_d, "%"FF_REG_S ); } @@ -636,7 +636,7 @@ static void RENAME(yuv2bgr24_X)(SwsInternal *c, const int16_t *lumFilter, :: "r" (&c->redDither), "m" (dummy), "m" (dummy), "m" (dummy), "r" (dest), "m" (dstW_reg), "m"(uv_off) - NAMED_CONSTRAINTS_ADD(ff_M24A,ff_M24C,ff_M24B) + NAMED_CONSTRAINTS_ADD(M24A,M24C,M24B) : "%"FF_REG_a, "%"FF_REG_c, "%"FF_REG_d, "%"FF_REG_S ); } @@ -864,7 +864,7 @@ static void RENAME(yuv2bgr24_2)(SwsInternal *c, const int16_t *buf[2], "mov "ESP_OFFSET"(%5), %%"FF_REG_b" \n\t" :: "c" (buf0), "d" (buf1), "S" (ubuf0), "D" (ubuf1), "m" (dest), "a" (&c->redDither) - NAMED_CONSTRAINTS_ADD(ff_M24A,ff_M24C,ff_M24B) + NAMED_CONSTRAINTS_ADD(M24A,M24C,M24B) ); } @@ -1191,7 +1191,7 @@ static void RENAME(yuv2bgr24_1)(SwsInternal *c, const int16_t *buf0, "mov "ESP_OFFSET"(%5), %%"FF_REG_b" \n\t" :: "c" (buf0), "d" (buf1), "S" (ubuf0), "D" (ubuf1), "m" (dest), "a" (&c->redDither) - NAMED_CONSTRAINTS_ADD(ff_M24A,ff_M24C,ff_M24B) + NAMED_CONSTRAINTS_ADD(M24A,M24C,M24B) ); } else { const int16_t *ubuf1 = ubuf[1]; @@ -1206,7 +1206,7 @@ static void RENAME(yuv2bgr24_1)(SwsInternal *c, const int16_t *buf0, "mov "ESP_OFFSET"(%5), %%"FF_REG_b" \n\t" :: "c" (buf0), "d" (buf1), "S" (ubuf0), "D" (ubuf1), "m" (dest), "a" (&c->redDither) - NAMED_CONSTRAINTS_ADD(ff_M24A,ff_M24C,ff_M24B) + NAMED_CONSTRAINTS_ADD(M24A,M24C,M24B) ); } } |