]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blobdiff - libavutil/ppc/intreadwrite.h
PPC: check for x-form asm constraint support
[frescor/ffmpeg.git] / libavutil / ppc / intreadwrite.h
index f9898172c560de49fa5028534f3f1eeef174a524..7bc2b2d4b331074a40f140c0dc10e778a466d27c 100644 (file)
@@ -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, uint64_t v)
 
 #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.