ref: ac990fdc3851393609b4c01742029888504969d2
parent: e606bae0e954af27daa55272f308f1dcdecd7c58
parent: d45e624cd43b7e39d4d407d90cbeb637e215be8c
author: volvet <[email protected]>
date: Sun Mar 16 06:21:35 EDT 2014
Merge pull request #507 from mstorsjo/more-x86-asm-args Add defines for argument 11 and 12 in asm_inc
--- a/codec/common/asm_inc.asm
+++ b/codec/common/asm_inc.asm
@@ -76,6 +76,8 @@
%define arg8 [rsp + push_num*8 + 64]
%define arg9 [rsp + push_num*8 + 72]
%define arg10 [rsp + push_num*8 + 80]
+%define arg11 [rsp + push_num*8 + 88]
+%define arg12 [rsp + push_num*8 + 96]
%define r0 rcx
%define r1 rdx
@@ -123,6 +125,8 @@
%define arg8 [rsp + push_num*8 + 16]
%define arg9 [rsp + push_num*8 + 24]
%define arg10 [rsp + push_num*8 + 32]
+%define arg11 [rsp + push_num*8 + 40]
+%define arg12 [rsp + push_num*8 + 48]
%define r0 rdi
%define r1 rsi
@@ -170,6 +174,8 @@
%define arg8 [esp + push_num*4 + 32]
%define arg9 [esp + push_num*4 + 36]
%define arg10 [esp + push_num*4 + 40]
+%define arg11 [esp + push_num*4 + 44]
+%define arg12 [esp + push_num*4 + 48]
%define r0 eax
%define r1 ecx
--- a/codec/processing/src/asm/vaa.asm
+++ b/codec/processing/src/asm/vaa.asm
@@ -1847,13 +1847,8 @@
%define psum16x16 arg8;
%define psqsum16x16 arg9;
%define psqdiff16x16 arg10;
-%ifdef WIN64
-%define p_sd8x8 [rsp + push_num*8 + 88];
-%define p_mad8x8 [rsp + push_num*8 + 96];
-%else ;linux
-%define p_sd8x8 [rsp + push_num*8 + 40];
-%define p_mad8x8 [rsp + push_num*8 + 48];
-%endif
+%define p_sd8x8 arg11
+%define p_mad8x8 arg12
push r12
push r13