diff options
author | Måns Rullgård <mans@mansr.com> | 2010-01-18 01:35:19 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-01-18 01:35:19 +0000 |
commit | bdd19e29dfb21ff09a23c07ad48bd12c5ef92ca8 (patch) | |
tree | ccaad8b0a7b0cb635d30b88f26464ef1a9190b64 /libavutil/ppc | |
parent | 8d072dd2a96dc1ed7c1a65d49361311db71f5bfb (diff) | |
download | ffmpeg-streaming-bdd19e29dfb21ff09a23c07ad48bd12c5ef92ca8.zip ffmpeg-streaming-bdd19e29dfb21ff09a23c07ad48bd12c5ef92ca8.tar.gz |
Mark all intreadwrite functions av_always_inline
Originally committed as revision 21278 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/ppc')
-rw-r--r-- | libavutil/ppc/intreadwrite.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavutil/ppc/intreadwrite.h b/libavutil/ppc/intreadwrite.h index 1844427..3667703 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" |