[FFmpeg-cvslog] avcodec/x86/constants: add pd_64

James Almer git at videolan.org
Sat Apr 26 05:21:56 EEST 2025


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Apr 25 23:20:58 2025 -0300| [8bb682d454990a1049a21f1f51442205ea3337e9] | committer: James Almer

avcodec/x86/constants: add pd_64

Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavcodec/x86/constants.c     | 2 ++
 libavcodec/x86/constants.h     | 1 +
 libavcodec/x86/hevc/idct.asm   | 2 +-
 libavcodec/x86/vp9mc_16bpp.asm | 3 +--
 libavcodec/x86/vvc/alf.asm     | 6 +++---
 5 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/libavcodec/x86/constants.c b/libavcodec/x86/constants.c
index 3af0743e77..c5f3c6428e 100644
--- a/libavcodec/x86/constants.c
+++ b/libavcodec/x86/constants.c
@@ -85,6 +85,8 @@ DECLARE_ALIGNED(32, const ymm_reg,  ff_pd_16)   = { 0x0000001000000010ULL, 0x000
                                                     0x0000001000000010ULL, 0x0000001000000010ULL };
 DECLARE_ALIGNED(32, const ymm_reg,  ff_pd_32)   = { 0x0000002000000020ULL, 0x0000002000000020ULL,
                                                     0x0000002000000020ULL, 0x0000002000000020ULL };
+DECLARE_ALIGNED(32, const ymm_reg,  ff_pd_64)   = { 0x0000004000000040ULL, 0x0000004000000040ULL,
+                                                    0x0000004000000040ULL, 0x0000004000000040ULL };
 DECLARE_ALIGNED(32, const ymm_reg,  ff_pd_8192) = { 0x0000200000002000ULL, 0x0000200000002000ULL,
                                                     0x0000200000002000ULL, 0x0000200000002000ULL };
 DECLARE_ALIGNED(32, const ymm_reg,  ff_pd_65535)= { 0x0000ffff0000ffffULL, 0x0000ffff0000ffffULL,
diff --git a/libavcodec/x86/constants.h b/libavcodec/x86/constants.h
index 0c6bf41fa0..4a55adb5b3 100644
--- a/libavcodec/x86/constants.h
+++ b/libavcodec/x86/constants.h
@@ -64,6 +64,7 @@ extern const xmm_reg  ff_ps_neg;
 extern const ymm_reg  ff_pd_1;
 extern const ymm_reg  ff_pd_16;
 extern const ymm_reg  ff_pd_32;
+extern const ymm_reg  ff_pd_64;
 extern const ymm_reg  ff_pd_8192;
 extern const ymm_reg  ff_pd_65535;
 
diff --git a/libavcodec/x86/hevc/idct.asm b/libavcodec/x86/hevc/idct.asm
index ce41f33822..e7967766e9 100644
--- a/libavcodec/x86/hevc/idct.asm
+++ b/libavcodec/x86/hevc/idct.asm
@@ -25,7 +25,7 @@
 
 SECTION_RODATA
 
-pd_64: times 4 dd 64
+cextern pd_64
 pd_2048: times 4 dd 2048
 pd_512: times 4 dd 512
 
diff --git a/libavcodec/x86/vp9mc_16bpp.asm b/libavcodec/x86/vp9mc_16bpp.asm
index 9a462eaf80..d86a89ccba 100644
--- a/libavcodec/x86/vp9mc_16bpp.asm
+++ b/libavcodec/x86/vp9mc_16bpp.asm
@@ -24,8 +24,7 @@
 
 SECTION_RODATA 32
 
-pd_64: times 8 dd 64
-
+cextern pd_64
 cextern pw_1023
 cextern pw_4095
 
diff --git a/libavcodec/x86/vvc/alf.asm b/libavcodec/x86/vvc/alf.asm
index f69a69f05f..ccb236294a 100644
--- a/libavcodec/x86/vvc/alf.asm
+++ b/libavcodec/x86/vvc/alf.asm
@@ -44,8 +44,8 @@ CLASSIFY_SHUFFE: times 2    db 2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9, 14, 15, 12,
 TRANSPOSE_PERMUTE:          dd 0, 1, 4, 5, 2, 3, 6, 7
 ARG_VAR_SHUFFE: times 2     db 0, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4
 
+cextern pd_64
 dd448: times 8             dd 512 - 64
-dw64: times 8              dd 64
 dd2:  times 8              dd 2
 dw3:  times 8              dd 3
 dw5:  times 8              dd 5
@@ -287,8 +287,8 @@ SECTION .text
 ; output: m0, m1
 ; temp:   s0q...s1q
 %macro FILTER_VB 1
-    vpbroadcastd      m0, [dw64]
-    vpbroadcastd      m1, [dw64]
+    vpbroadcastd      m0, [pd_64]
+    vpbroadcastd      m1, [pd_64]
 
     GET_SRCS %1
 %if LUMA



More information about the ffmpeg-cvslog mailing list