summaryrefslogtreecommitdiff
path: root/libavcodec/x86
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-07-28 08:20:19 -0700
committerRonald S. Bultje <rsbultje@gmail.com>2012-07-28 08:29:44 -0700
commitb3c5ae5607275f691289df737edaf47c72e6028c (patch)
treed8ab240d3f185acab02deffe6221658eb88883c0 /libavcodec/x86
parentc1d865d5633e8e9eb9ee2bfa876fbcae4cd41cfd (diff)
fft: rename "z" to "zc" to prevent name collision.
Without this, cglobal will expand "z" to "zh" to access the high byte in a register's word, which causes a name collision with the ZH(x) macro further up in this file.
Diffstat (limited to 'libavcodec/x86')
-rw-r--r--libavcodec/x86/fft_mmx.asm18
1 files changed, 9 insertions, 9 deletions
diff --git a/libavcodec/x86/fft_mmx.asm b/libavcodec/x86/fft_mmx.asm
index 527e215522..5c6583b3b7 100644
--- a/libavcodec/x86/fft_mmx.asm
+++ b/libavcodec/x86/fft_mmx.asm
@@ -516,23 +516,23 @@ INIT_MMX 3dnow
FFT48_3DN
-%define Z(x) [zq + o1q*(x&6) + mmsize*(x&1)]
-%define Z2(x) [zq + o3q + mmsize*(x&1)]
-%define ZH(x) [zq + o1q*(x&6) + mmsize*(x&1) + mmsize/2]
-%define Z2H(x) [zq + o3q + mmsize*(x&1) + mmsize/2]
+%define Z(x) [zcq + o1q*(x&6) + mmsize*(x&1)]
+%define Z2(x) [zcq + o3q + mmsize*(x&1)]
+%define ZH(x) [zcq + o1q*(x&6) + mmsize*(x&1) + mmsize/2]
+%define Z2H(x) [zcq + o3q + mmsize*(x&1) + mmsize/2]
%macro DECL_PASS 2+ ; name, payload
align 16
%1:
-DEFINE_ARGS z, w, n, o1, o3
+DEFINE_ARGS zc, w, n, o1, o3
lea o3q, [nq*3]
lea o1q, [nq*8]
shl o3q, 4
.loop:
%2
- add zq, mmsize*2
- add wq, mmsize
- sub nd, mmsize/8
+ add zcq, mmsize*2
+ add wq, mmsize
+ sub nd, mmsize/8
jg .loop
rep ret
%endmacro
@@ -747,7 +747,7 @@ section .text
; On x86_32, this function does the register saving and restoring for all of fft.
; The others pass args in registers and don't spill anything.
-cglobal fft_dispatch%2, 2,5,8, z, nbits
+cglobal fft_dispatch%2, 2,5,8, zc, nbits
FFT_DISPATCH fullsuffix, nbits
RET
%endmacro ; DECL_FFT