changeset 464:18c82237bf84 libavutil

check for x86 bswap instruction
author mru
date Sat, 08 Mar 2008 18:33:07 +0000
parents fc4239d967ce
children b0b971f533e4
files bswap.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bswap.h	Sat Mar 08 14:39:43 2008 +0000
+++ b/bswap.h	Sat Mar 08 18:33:07 2008 +0000
@@ -56,7 +56,7 @@
 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