[MPlayer-cvslog] r36974 - trunk/configure

michael subversion at mplayerhq.hu
Wed Mar 5 02:15:09 CET 2014


Author: michael
Date: Wed Mar  5 02:15:08 2014
New Revision: 36974

Log:
configure: add fma3

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Tue Mar  4 20:28:58 2014	(r36973)
+++ trunk/configure	Wed Mar  5 02:15:08 2014	(r36974)
@@ -572,6 +572,7 @@ Advanced options:
   --enable-sse42            enable SSE4.2 [autodetect]
   --enable-avx              enable AVX [autodetect]
   --enable-xop              enable XOP [autodetect]
+  --enable-fma3             enable FMA3 [autodetect]
   --enable-shm              enable shm [autodetect]
   --enable-altivec          enable AltiVec (PowerPC) [autodetect]
   --enable-armv5te          enable DSP extensions (ARM) [autodetect]
@@ -630,6 +631,7 @@ _sse4_1=auto
 _sse4_2=auto
 _avx=auto
 _xop=auto
+_fma3=auto
 _cmov=auto
 _fast_cmov=auto
 _fast_clz=auto
@@ -1423,6 +1425,8 @@ for ac_option do
   --disable-avx) _avx=no;;
   --enable-xop) _xop=yes;;
   --disable-xop) _xop=no;;
+  --enable-fma3) _fma3=yes;;
+  --disable-fma3) _fma3=no;;
   --enable-mmxext) _mmxext=yes ;;
   --disable-mmxext) _mmxext=no ;;
   --enable-3dnow) _3dnow=yes ;;
@@ -1988,6 +1992,7 @@ EOF
   extcheck $_sse4_2   "sse4_2"   "pcmpgtq %%xmm0, %%xmm0"
   extcheck $_avx      "avx"      "vpabsw %%xmm0, %%xmm0"
   extcheck $_xop      "xop"      "vpmacsdd %%xmm0, %%xmm1, %%xmm2, %%xmm3"
+  extcheck $_fma3     "fma3"     "vfmadd132ps %%ymm0, %%ymm1, %%ymm2"
   extcheck $_cmov     "cmov"     "cmovb %%eax,  %%ebx"
 
   echocheck "mtrr support"
@@ -2668,6 +2673,7 @@ if test "$_runtime_cpudetection" = yes ;
     test "$_sse4_2"   != no && _sse4_2=yes
     test "$_avx"      != no && _avx=yes
     test "$_xop"      != no && _xop=yes
+    test "$_fma3"     != no && _fma3=yes
     test "$_mtrr"     != no && _mtrr=yes
   fi
   if ppc; then
@@ -3168,7 +3174,7 @@ if arm ; then
   echores "$_iwmmxt"
 fi
 
-cpuexts_all='ALTIVEC XOP AVX MMX MMX2 MMXEXT AMD3DNOW AMD3DNOWEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE42 FAST_CMOV I686 FAST_CLZ ARMV5TE ARMV6 ARMV6T2 VFP VFPV3 NEON IWMMXT MMI VIS MVI'
+cpuexts_all='ALTIVEC XOP AVX FMA3 MMX MMX2 MMXEXT AMD3DNOW AMD3DNOWEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE42 FAST_CMOV I686 FAST_CLZ ARMV5TE ARMV6 ARMV6T2 VFP VFPV3 NEON IWMMXT MMI VIS MVI'
 test "$_altivec"   = yes && cpuexts="ALTIVEC $cpuexts"
 test "$_mmx"       = yes && cpuexts="MMX $cpuexts"
 test "$_mmxext"    = yes && cpuexts="MMX2 $cpuexts"
@@ -3183,6 +3189,7 @@ test "$_sse4_1"    = yes && cpuexts="SSE
 test "$_sse4_2"    = yes && cpuexts="SSE42 $cpuexts"
 test "$_avx"       = yes && cpuexts="AVX $cpuexts"
 test "$_xop"       = yes && cpuexts="XOP $cpuexts"
+test "$_fma3"      = yes && cpuexts="FMA3 $cpuexts"
 test "$_cmov"      = yes && cpuexts="I686 $cpuexts"
 test "$_fast_cmov" = yes && cpuexts="FAST_CMOV $cpuexts"
 test "$_fast_clz"  = yes && cpuexts="FAST_CLZ $cpuexts"


More information about the MPlayer-cvslog mailing list