[MPlayer-dev-eng] [PATCH] Set HAVE_FAST_CLZ according to CPU type

Zuxy Meng zuxy.meng at gmail.com
Tue Jan 19 03:55:44 CET 2010


2010/1/18 Diego Biurrun <diego at biurrun.de>:
> 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 && ..

Updated in attached patch.

>
>> @@ -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.

It was in order except for FAST_CMOV and CMOV. Anyway FAST_CLZ
precedes PLD in both places.

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clz.diff
Type: application/octet-stream
Size: 4178 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100119/788a3a88/attachment.obj>


More information about the MPlayer-dev-eng mailing list