[MPlayer-dev-eng] [PATCH] Set HAVE_FAST_CLZ according to CPU type
Diego Biurrun
diego at biurrun.de
Mon Jan 18 11:58:59 CET 2010
On Mon, Jan 18, 2010 at 03:00:25PM +0800, Zuxy Meng wrote:
>
> The attached patch adds support for detecting fast CLZ.
Fine with me..
> --- configure (???? 30363)
> +++ configure (????????)
> @@ -2761,6 +2781,10 @@
>
> + if test _armv5te = "yes" && test $_fast_clz = "auto" ; then
> + _fast_clz=yes
> + fi
Could be done on one line with && and && ..
> @@ -2812,7 +2836,7 @@
>
> -_cpuexts_all='ALTIVEC MMX MMX2 AMD3DNOW AMD3DNOWEXT SSE SSE2 SSSE3 FAST_CMOV CMOV PLD ARMV5TE ARMV6 ARMV6T2 ARMVFP NEON IWMMXT MMI VIS MVI'
> +_cpuexts_all='ALTIVEC MMX MMX2 AMD3DNOW AMD3DNOWEXT SSE SSE2 SSSE3 FAST_CMOV CMOV FAST_CLZ PLD ARMV5TE ARMV6 ARMV6T2 ARMVFP NEON IWMMXT MMI VIS MVI'
> test "$_altivec" = yes && _cpuexts="ALTIVEC $_cpuexts"
> test "$_mmx" = yes && _cpuexts="MMX $_cpuexts"
> test "$_mmxext" = yes && _cpuexts="MMX2 $_cpuexts"
> @@ -2823,6 +2847,7 @@
> test "$_ssse3" = yes && _cpuexts="SSSE3 $_cpuexts"
> test "$_cmov" = yes && _cpuexts="CMOV $_cpuexts"
> test "$_fast_cmov" = yes && _cpuexts="FAST_CMOV $_cpuexts"
> +test "$_fast_clz" = yes && _cpuexts="FAST_CLZ $_cpuexts"
> test "$pld" = yes && _cpuexts="PLD $_cpuexts"
> test "$_armv5te" = yes && _cpuexts="ARMV5TE $_cpuexts"
> test "$_armv6" = yes && _cpuexts="ARMV6 $_cpuexts"
Was this in some sort of order previously? If yes, keep it, if no,
feel free to ignore.
Diego
More information about the MPlayer-dev-eng
mailing list