Mercurial > libavutil.hg
diff ppc/intreadwrite.h @ 812:f849545df4e5 libavutil
Mark all intreadwrite functions av_always_inline
| author | mru |
|---|---|
| date | Mon, 18 Jan 2010 01:35:19 +0000 |
| parents | fd032514a113 |
| children |
line wrap: on
line diff
--- a/ppc/intreadwrite.h Sun Jan 17 14:17:03 2010 +0000 +++ b/ppc/intreadwrite.h Mon Jan 18 01:35:19 2010 +0000 @@ -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 @@ } #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 @@ } #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 @@ #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 @@ } #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 @@ #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 @@ } #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"
