Originally committed as revision 12375 to svn://svn.ffmpeg.org/ffmpeg/trunk
$THREADS_LIST
altivec_h
arpa_inet_h
+ bswap
byteswap_h
closesocket
cmov
# check whether binutils is new enough to compile SSSE3
enabled ssse3 && check_asm ssse3 '"pabsw %xmm0, %xmm0"'
+
+ check_asm bswap '"bswap %%eax" ::: "%eax"'
fi
# check for assembler specific support
echo "WORDS_BIGENDIAN=yes" >> config.mak
echo "#define WORDS_BIGENDIAN 1" >> $TMPH
fi
-if enabled mmx; then
- echo "#define __CPU__ 586" >> $TMPH
-fi
if enabled sdl; then
echo "SDL_LIBS=`"${SDL_CONFIG}" --libs`" >> config.mak
static av_always_inline uint32_t bswap_32(uint32_t x)
{
#if defined(ARCH_X86)
-#if __CPU__ != 386
+#ifdef HAVE_BSWAP
__asm("bswap %0":
"=r" (x) :
#else