aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-01-14 19:58:09 +0000
committerMåns Rullgård <mans@mansr.com>2010-01-14 19:58:09 +0000
commit669b5583302b6dc04afaaab78144a6536399cdc6 (patch)
tree7b2141acd9cae721b096360821e32d04d03ee235
parent00c081a8f0598ba76e1bfb1b079872f5f872218a (diff)
downloadffmpeg-669b5583302b6dc04afaaab78144a6536399cdc6.tar.gz
Set HAVE_FAST_CLZ if CPU has a fast count leading zeros instruction
Originally committed as revision 21216 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index 0c580e1612..6321bb9cdd 100755
--- a/configure
+++ b/configure
@@ -962,6 +962,7 @@ HAVE_LIST="
exp2
exp2f
fast_64bit
+ fast_clz
fast_cmov
fast_unaligned
fork
@@ -1094,6 +1095,8 @@ sse_deps="mmx"
ssse3_deps="sse"
vis_deps="sparc"
+fast_clz_if_any="alpha armv5te avr32 mips ppc x86"
+
need_memalign="altivec neon sse"
inline_asm_deps="!tms470"
@@ -2312,6 +2315,12 @@ EOF
esac
disabled yasm || { check_yasm "pabsw xmm0, xmm0" && enable yasm; }
+ case "$cpu" in
+ athlon*|opteron*|k8*|pentium|pentium-mmx|prescott|nocona|atom|geode)
+ disable fast_clz
+ ;;
+ esac
+
fi
if check_func dlopen; then