[FFmpeg-cvslog] r12375 - in trunk: configure libavutil/bswap.h
mru
subversion
Sat Mar 8 19:33:08 CET 2008
Author: mru
Date: Sat Mar 8 19:33:07 2008
New Revision: 12375
Log:
check for x86 bswap instruction
Modified:
trunk/configure
trunk/libavutil/bswap.h
Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Sat Mar 8 19:33:07 2008
@@ -708,6 +708,7 @@ HAVE_LIST="
$THREADS_LIST
altivec_h
arpa_inet_h
+ bswap
byteswap_h
closesocket
cmov
@@ -1504,6 +1505,8 @@ EOF
# 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
@@ -1989,9 +1992,6 @@ if enabled bigendian; then
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
Modified: trunk/libavutil/bswap.h
==============================================================================
--- trunk/libavutil/bswap.h (original)
+++ trunk/libavutil/bswap.h Sat Mar 8 19:33:07 2008
@@ -56,7 +56,7 @@ static av_always_inline uint16_t bswap_1
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
More information about the ffmpeg-cvslog
mailing list