diff options
author | aurel <aurel@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-08-05 13:33:50 +0000 |
---|---|---|
committer | aurel <aurel@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-08-05 13:33:50 +0000 |
commit | 236d514567d5681fe2f7df110d7b1f46a7be701f (patch) | |
tree | 86f2a2412d99fd7d9d2ab06eb7529103b4350c47 /liba52/a52_internal.h | |
parent | 4bf7522a2ed124855eb7756b9c8f72a4cb683be4 (diff) | |
download | mpv-236d514567d5681fe2f7df110d7b1f46a7be701f.tar.bz2 mpv-236d514567d5681fe2f7df110d7b1f46a7be701f.tar.xz |
liba52 asm optimizations ported to amd64
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16174 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'liba52/a52_internal.h')
-rw-r--r-- | liba52/a52_internal.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/liba52/a52_internal.h b/liba52/a52_internal.h index 428bbd1a2a..91fc54a300 100644 --- a/liba52/a52_internal.h +++ b/liba52/a52_internal.h @@ -41,6 +41,20 @@ #define DELTA_BIT_NONE (2) #define DELTA_BIT_RESERVED (3) +#ifdef ARCH_X86_64 +# define REG_a "rax" +# define REG_d "rdx" +# define REG_S "rsi" +# define REG_D "rdi" +# define REG_BP "rbp" +#else +# define REG_a "eax" +# define REG_d "edx" +# define REG_S "esi" +# define REG_D "edi" +# define REG_BP "ebp" +#endif + void bit_allocate (a52_state_t * state, a52_ba_t * ba, int bndstart, int start, int end, int fastleak, int slowleak, uint8_t * exp, int8_t * bap); |