Revision a88fc5c0

View differences:

Doxyfile
836 836
# omitted =1 is assumed.
837 837

  
838 838
PREDEFINED             = __attribute__(x)="" "RENAME(x)=x ## _TMPL" "DEF(x)=x ## _TMPL" \
839
                         HAVE_BUILTIN_VECTOR HAVE_AV_CONFIG_H HAVE_MMX HAVE_MMX2 HAVE_3DNOW \
839
                         HAVE_AV_CONFIG_H HAVE_MMX HAVE_MMX2 HAVE_3DNOW \
840 840
                         ATTR_ALIGN(x)=""
841 841

  
842 842
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
configure
1223 1223
}
1224 1224
EOF
1225 1225

  
1226
# test gcc version to see if vector builtins can be used
1227
# currently only used on i386 for MMX builtins
1228
check_cc -msse <<EOF && builtin_vector=yes || builtin_vector=no
1229
#include <xmmintrin.h>
1230
int main(void) {
1231
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
1232
return 0;
1233
#else
1234
#error no vector builtins
1235
#endif
1236
}
1237
EOF
1238

  
1239
# test for mm3dnow.h
1240
test "$cpu" = "x86_64" && march=k8 || march=athlon
1241
check_cc -march=$march <<EOF && mm3dnow=yes || mm3dnow=no
1242
#include <mm3dnow.h>
1243
int main(void) {
1244
__m64 b1;
1245
b1 = _m_pswapd(b1);
1246
_m_femms();
1247
return 0;
1248
}
1249
EOF
1250

  
1251 1226
# ---
1252 1227
# big/little-endian test
1253 1228
if test "$cross_compile" = "no"; then
......
1575 1550
echo "broken inttypes.h $emu_fast_int"
1576 1551
if test $cpu = "x86" -o $cpu = "x86_64"; then
1577 1552
    echo "MMX enabled      $mmx"
1578
    echo "Vector Builtins  $builtin_vector"
1579
    echo "3DNow! Builtins  $mm3dnow"
1580 1553
fi
1581 1554
if test $cpu = "armv4l"; then
1582 1555
    echo "ARMv5TE enabled  $armv5te"
......
1759 1732
  echo "#define HAVE_MMX 1" >> $TMPH
1760 1733
  echo "#define __CPU__ 586" >> $TMPH
1761 1734
fi
1762
if test "$builtin_vector" = "yes" ; then
1763
  echo "TARGET_BUILTIN_VECTOR=yes" >> config.mak
1764
  echo "#define HAVE_BUILTIN_VECTOR 1" >> $TMPH
1765
fi
1766
if test "$mm3dnow" = "yes" ; then
1767
  echo "TARGET_BUILTIN_3DNOW=yes" >> config.mak
1768
  echo "#define HAVE_MM3DNOW 1" >> $TMPH
1769
fi
1770 1735
if test "$armv5te" = "yes" ; then
1771 1736
  echo "TARGET_ARMV5TE=yes" >> config.mak
1772 1737
  echo "#define HAVE_ARMV5TE 1" >> $TMPH
libavcodec/Makefile
339 339
ifeq ($(CONFIG_CAVS_DECODER),yes)
340 340
OBJS += i386/cavsdsp_mmx.o
341 341
endif
342
ifeq ($(TARGET_BUILTIN_VECTOR),yes)
343
i386/fft_sse.o: CFLAGS+= -msse
344
depend: CFLAGS+= -msse
345
endif
346
ifeq ($(TARGET_BUILTIN_3DNOW),yes)
347
i386/fft_3dn.o: CFLAGS+= -m3dnow
348
ifeq ($(TARGET_ARCH_X86),yes)
349
i386/fft_3dn2.o: CFLAGS+= -march=athlon
350
endif
351
ifeq ($(TARGET_ARCH_X86_64),yes)
352
i386/fft_3dn2.o: CFLAGS+= -march=k8
353
endif
354
endif
355 342
endif
356 343

  
357 344
# armv4l specific stuff

Also available in: Unified diff