diff options
author | Henrik Gramner <hengar-6@student.ltu.se> | 2012-04-04 20:03:15 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-04-11 15:47:00 -0400 |
commit | 729f90e26802057f06905ab15a34612168eeac80 (patch) | |
tree | 41f8c4cedf10851b5b437aeeb558ce3d0f8db1dc /libavcodec/x86/h264_weight.asm | |
parent | e1ce756844e684876318570dcebc74bc66c084f0 (diff) | |
download | ffmpeg-729f90e26802057f06905ab15a34612168eeac80.tar.gz |
x86inc improvements for 64-bit
Add support for all x86-64 registers
Prefer caller-saved register over callee-saved on WIN64
Support up to 15 function arguments
Also (by Ronald S. Bultje)
Fix up our asm to work with new x86inc.asm.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Diffstat (limited to 'libavcodec/x86/h264_weight.asm')
-rw-r--r-- | libavcodec/x86/h264_weight.asm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/x86/h264_weight.asm b/libavcodec/x86/h264_weight.asm index 1c40e49eaa..22ce72d19f 100644 --- a/libavcodec/x86/h264_weight.asm +++ b/libavcodec/x86/h264_weight.asm @@ -127,7 +127,7 @@ WEIGHT_FUNC_HALF_MM 8, 8, sse2 %macro BIWEIGHT_SETUP 0 %if ARCH_X86_64 -%define off_regd r11d +%define off_regd r7d %else %define off_regd r3d %endif @@ -175,7 +175,7 @@ WEIGHT_FUNC_HALF_MM 8, 8, sse2 %endmacro INIT_MMX -cglobal h264_biweight_16_mmx2, 7, 7, 0 +cglobal h264_biweight_16_mmx2, 7, 8, 0 BIWEIGHT_SETUP movifnidn r3d, r3m .nextrow @@ -194,7 +194,7 @@ cglobal h264_biweight_16_mmx2, 7, 7, 0 REP_RET %macro BIWEIGHT_FUNC_MM 3 -cglobal h264_biweight_%1_%3, 7, 7, %2 +cglobal h264_biweight_%1_%3, 7, 8, %2 BIWEIGHT_SETUP movifnidn r3d, r3m .nextrow @@ -215,7 +215,7 @@ INIT_XMM BIWEIGHT_FUNC_MM 16, 8, sse2 %macro BIWEIGHT_FUNC_HALF_MM 3 -cglobal h264_biweight_%1_%3, 7, 7, %2 +cglobal h264_biweight_%1_%3, 7, 8, %2 BIWEIGHT_SETUP movifnidn r3d, r3m sar r3, 1 @@ -245,7 +245,7 @@ BIWEIGHT_FUNC_HALF_MM 8, 8, sse2 %macro BIWEIGHT_SSSE3_SETUP 0 %if ARCH_X86_64 -%define off_regd r11d +%define off_regd r7d %else %define off_regd r3d %endif @@ -277,7 +277,7 @@ BIWEIGHT_FUNC_HALF_MM 8, 8, sse2 %endmacro INIT_XMM -cglobal h264_biweight_16_ssse3, 7, 7, 8 +cglobal h264_biweight_16_ssse3, 7, 8, 8 BIWEIGHT_SSSE3_SETUP movifnidn r3d, r3m @@ -296,7 +296,7 @@ cglobal h264_biweight_16_ssse3, 7, 7, 8 REP_RET INIT_XMM -cglobal h264_biweight_8_ssse3, 7, 7, 8 +cglobal h264_biweight_8_ssse3, 7, 8, 8 BIWEIGHT_SSSE3_SETUP movifnidn r3d, r3m sar r3, 1 |