From bdd19e29dfb21ff09a23c07ad48bd12c5ef92ca8 Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Mon, 18 Jan 2010 01:35:19 +0000 Subject: Mark all intreadwrite functions av_always_inline Originally committed as revision 21278 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/ppc/intreadwrite.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'libavutil/ppc') diff --git a/libavutil/ppc/intreadwrite.h b/libavutil/ppc/intreadwrite.h index 1844427544..3667703cf0 100644 --- a/libavutil/ppc/intreadwrite.h +++ b/libavutil/ppc/intreadwrite.h @@ -27,7 +27,7 @@ #if HAVE_XFORM_ASM #define AV_RL16 AV_RL16 -static inline uint16_t AV_RL16(const void *p) +static av_always_inline uint16_t AV_RL16(const void *p) { uint16_t v; __asm__ ("lhbrx %0, %y1" : "=r"(v) : "Z"(*(const uint16_t*)p)); @@ -35,13 +35,13 @@ static inline uint16_t AV_RL16(const void *p) } #define AV_WL16 AV_WL16 -static inline void AV_WL16(void *p, uint16_t v) +static av_always_inline void AV_WL16(void *p, uint16_t v) { __asm__ ("sthbrx %1, %y0" : "=Z"(*(uint16_t*)p) : "r"(v)); } #define AV_RL32 AV_RL32 -static inline uint32_t AV_RL32(const void *p) +static av_always_inline uint32_t AV_RL32(const void *p) { uint32_t v; __asm__ ("lwbrx %0, %y1" : "=r"(v) : "Z"(*(const uint32_t*)p)); @@ -49,7 +49,7 @@ static inline uint32_t AV_RL32(const void *p) } #define AV_WL32 AV_WL32 -static inline void AV_WL32(void *p, uint32_t v) +static av_always_inline void AV_WL32(void *p, uint32_t v) { __asm__ ("stwbrx %1, %y0" : "=Z"(*(uint32_t*)p) : "r"(v)); } @@ -57,7 +57,7 @@ static inline void AV_WL32(void *p, uint32_t v) #if HAVE_LDBRX #define AV_RL64 AV_RL64 -static inline uint64_t AV_RL64(const void *p) +static av_always_inline uint64_t AV_RL64(const void *p) { uint64_t v; __asm__ ("ldbrx %0, %y1" : "=r"(v) : "Z"(*(const uint64_t*)p)); @@ -65,7 +65,7 @@ static inline uint64_t AV_RL64(const void *p) } #define AV_WL64 AV_WL64 -static inline void AV_WL64(void *p, uint64_t v) +static av_always_inline void AV_WL64(void *p, uint64_t v) { __asm__ ("stdbrx %1, %y0" : "=Z"(*(uint64_t*)p) : "r"(v)); } @@ -73,7 +73,7 @@ static inline void AV_WL64(void *p, uint64_t v) #else #define AV_RL64 AV_RL64 -static inline uint64_t AV_RL64(const void *p) +static av_always_inline uint64_t AV_RL64(const void *p) { union { uint64_t v; uint32_t hl[2]; } v; __asm__ ("lwbrx %0, %y2 \n\t" @@ -84,7 +84,7 @@ static inline uint64_t AV_RL64(const void *p) } #define AV_WL64 AV_WL64 -static inline void AV_WL64(void *p, uint64_t v) +static av_always_inline void AV_WL64(void *p, uint64_t v) { union { uint64_t v; uint32_t hl[2]; } vv = { v }; __asm__ ("stwbrx %2, %y0 \n\t" -- cgit v1.2.3