diff options
author | Guillaume Poirier <gpoirier@mplayerhq.hu> | 2006-10-20 17:53:19 +0000 |
---|---|---|
committer | Guillaume Poirier <gpoirier@mplayerhq.hu> | 2006-10-20 17:53:19 +0000 |
commit | 94e4c3a333c50170c6645bc5ea43578270249644 (patch) | |
tree | 81525c5539104e97b4987d37cb67fe3064ee4f55 /libavcodec/cabac.h | |
parent | 4c8d81fa2d21ec9d21a5ab6dbbdeded9be140a17 (diff) | |
download | ffmpeg-94e4c3a333c50170c6645bc5ea43578270249644.tar.gz |
Protect code that uses CMOV instructions with HAVE_CMOV,
Make configure set CMOV_IS_FAST on arches on which cmov has a low latency
(typically non-Netburst based processor)
Originally committed as revision 6749 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cabac.h')
-rw-r--r-- | libavcodec/cabac.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/cabac.h b/libavcodec/cabac.h index e191a62124..ff3e06ae10 100644 --- a/libavcodec/cabac.h +++ b/libavcodec/cabac.h @@ -32,7 +32,6 @@ #define CABAC_BITS 16 #define CABAC_MASK ((1<<CABAC_BITS)-1) #define BRANCHLESS_CABAC_DECODER 1 -#define CMOV_IS_FAST 1 //#define ARCH_X86_DISABLED 1 typedef struct CABACContext{ @@ -454,7 +453,7 @@ static int always_inline get_cabac_inline(CABACContext *c, uint8_t * const state #else /* BRANCHLESS_CABAC_DECODER */ -#if (defined CMOV_IS_FAST && __CPU__ >= 686) +#if defined CMOV_IS_FAST #define BRANCHLESS_GET_CABAC_UPDATE(ret, cabac, statep, low, lowword, range, tmp, tmpbyte)\ "mov "tmp" , %%ecx \n\t"\ "shl $17 , "tmp" \n\t"\ |