[FFmpeg-cvslog] r18606 - in trunk: configure libavutil/ppc/intreadwrite.h

mru subversion
Sat Apr 18 15:57:30 CEST 2009


Author: mru
Date: Sat Apr 18 15:57:30 2009
New Revision: 18606

Log:
PPC: check for x-form asm constraint support

Modified:
   trunk/configure
   trunk/libavutil/ppc/intreadwrite.h

Modified: trunk/configure
==============================================================================
--- trunk/configure	Sat Apr 18 10:35:46 2009	(r18605)
+++ trunk/configure	Sat Apr 18 15:57:30 2009	(r18606)
@@ -924,6 +924,7 @@ HAVE_LIST="
     truncf
     VirtualAlloc
     winsock2_h
+    xform_asm
     yasm
 "
 
@@ -1908,6 +1909,7 @@ fi
 
 enabled ppc && check_asm dcbzl '"dcbzl 0, 1"'
 enabled ppc && check_asm ppc4xx '"maclhw r10, r11, r12"'
+enabled ppc && check_asm xform_asm '"lwzx 0, %y0" :: "Z"(*(int*)0)'
 
 # check for SIMD availability
 

Modified: trunk/libavutil/ppc/intreadwrite.h
==============================================================================
--- trunk/libavutil/ppc/intreadwrite.h	Sat Apr 18 10:35:46 2009	(r18605)
+++ trunk/libavutil/ppc/intreadwrite.h	Sat Apr 18 15:57:30 2009	(r18606)
@@ -24,6 +24,8 @@
 #include <stdint.h>
 #include "config.h"
 
+#if HAVE_XFORM_ASM
+
 #define AV_RL16 AV_RL16
 static inline uint16_t AV_RL16(const void *p)
 {
@@ -93,6 +95,8 @@ static inline void AV_WL64(void *p, uint
 
 #endif /* HAVE_LDBRX */
 
+#endif /* HAVE_XFORM_ASM */
+
 /*
  * GCC fails miserably on the packed struct version which is used by
  * default, so we override it here.



More information about the ffmpeg-cvslog mailing list