From 9c9f9a226b2ce75f6f985a83c8511aee9065e128 Mon Sep 17 00:00:00 2001 From: mru Date: Sat, 18 Apr 2009 13:57:30 +0000 Subject: [PATCH] PPC: check for x-form asm constraint support git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18606 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- configure | 2 ++ libavutil/ppc/intreadwrite.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/configure b/configure index 1480515a1..876a19bb0 100755 --- a/configure +++ b/configure @@ -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 diff --git a/libavutil/ppc/intreadwrite.h b/libavutil/ppc/intreadwrite.h index f9898172c..7bc2b2d4b 100644 --- a/libavutil/ppc/intreadwrite.h +++ b/libavutil/ppc/intreadwrite.h @@ -24,6 +24,8 @@ #include #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. -- 2.39.2