mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-05 21:55:37 +01:00
Mark all intreadwrite functions av_always_inline
Originally committed as revision 21278 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user