[FFmpeg-cvslog] r21278 - in trunk/libavutil: arm/intreadwrite.h avr32/intreadwrite.h mips/intreadwrite.h ppc/intreadwrite.h

mru subversion
Mon Jan 18 02:35:19 CET 2010


Author: mru
Date: Mon Jan 18 02:35:19 2010
New Revision: 21278

Log:
Mark all intreadwrite functions av_always_inline

Modified:
   trunk/libavutil/arm/intreadwrite.h
   trunk/libavutil/avr32/intreadwrite.h
   trunk/libavutil/mips/intreadwrite.h
   trunk/libavutil/ppc/intreadwrite.h

Modified: trunk/libavutil/arm/intreadwrite.h
==============================================================================
--- trunk/libavutil/arm/intreadwrite.h	Mon Jan 18 02:25:57 2010	(r21277)
+++ trunk/libavutil/arm/intreadwrite.h	Mon Jan 18 02:35:19 2010	(r21278)
@@ -25,7 +25,7 @@
 #if HAVE_FAST_UNALIGNED && HAVE_INLINE_ASM
 
 #define AV_RN16 AV_RN16
-static inline uint16_t AV_RN16(const void *p)
+static av_always_inline uint16_t AV_RN16(const void *p)
 {
     uint16_t v;
     __asm__ ("ldrh %0, %1" : "=r"(v) : "m"(*(const uint16_t *)p));
@@ -33,13 +33,13 @@ static inline uint16_t AV_RN16(const voi
 }
 
 #define AV_WN16 AV_WN16
-static inline void AV_WN16(void *p, uint16_t v)
+static av_always_inline void AV_WN16(void *p, uint16_t v)
 {
     __asm__ ("strh %1, %0" : "=m"(*(uint16_t *)p) : "r"(v));
 }
 
 #define AV_RN32 AV_RN32
-static inline uint32_t AV_RN32(const void *p)
+static av_always_inline uint32_t AV_RN32(const void *p)
 {
     uint32_t v;
     __asm__ ("ldr  %0, %1" : "=r"(v) : "m"(*(const uint32_t *)p));
@@ -47,13 +47,13 @@ static inline uint32_t AV_RN32(const voi
 }
 
 #define AV_WN32 AV_WN32
-static inline void AV_WN32(void *p, uint32_t v)
+static av_always_inline void AV_WN32(void *p, uint32_t v)
 {
     __asm__ ("str  %1, %0" : "=m"(*(uint32_t *)p) : "r"(v));
 }
 
 #define AV_RN64 AV_RN64
-static inline uint64_t AV_RN64(const void *p)
+static av_always_inline uint64_t AV_RN64(const void *p)
 {
     union { uint64_t v; uint32_t hl[2]; } v;
     __asm__ ("ldr   %0, %2  \n\t"
@@ -64,7 +64,7 @@ static inline uint64_t AV_RN64(const voi
 }
 
 #define AV_WN64 AV_WN64
-static inline void AV_WN64(void *p, uint64_t v)
+static av_always_inline void AV_WN64(void *p, uint64_t v)
 {
     union { uint64_t v; uint32_t hl[2]; } vv = { v };
     __asm__ ("str  %2, %0  \n\t"

Modified: trunk/libavutil/avr32/intreadwrite.h
==============================================================================
--- trunk/libavutil/avr32/intreadwrite.h	Mon Jan 18 02:25:57 2010	(r21277)
+++ trunk/libavutil/avr32/intreadwrite.h	Mon Jan 18 02:35:19 2010	(r21278)
@@ -40,7 +40,7 @@
  */
 
 #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__ ("ld.ub    %0,   %1  \n\t"
@@ -51,7 +51,7 @@ static inline uint16_t AV_RL16(const voi
 }
 
 #define AV_RB16 AV_RB16
-static inline uint16_t AV_RB16(const void *p)
+static av_always_inline uint16_t AV_RB16(const void *p)
 {
     uint16_t v;
     __asm__ ("ld.ub    %0,   %2  \n\t"
@@ -62,7 +62,7 @@ static inline uint16_t AV_RB16(const voi
 }
 
 #define AV_RB24 AV_RB24
-static inline uint32_t AV_RB24(const void *p)
+static av_always_inline uint32_t AV_RB24(const void *p)
 {
     uint32_t v;
     __asm__ ("ld.ub    %0,   %3  \n\t"
@@ -76,7 +76,7 @@ static inline uint32_t AV_RB24(const voi
 }
 
 #define AV_RL24 AV_RL24
-static inline uint32_t AV_RL24(const void *p)
+static av_always_inline uint32_t AV_RL24(const void *p)
 {
     uint32_t v;
     __asm__ ("ld.ub    %0,   %1  \n\t"
@@ -92,7 +92,7 @@ static inline uint32_t AV_RL24(const voi
 #if ARCH_AVR32_AP
 
 #define AV_RB32 AV_RB32
-static inline uint32_t AV_RB32(const void *p)
+static av_always_inline uint32_t AV_RB32(const void *p)
 {
     uint32_t v;
     __asm__ ("ld.w %0, %1" : "=r"(v) : "m"(*(const uint32_t*)p));
@@ -100,7 +100,7 @@ static inline uint32_t AV_RB32(const voi
 }
 
 #define AV_WB32 AV_WB32
-static inline void AV_WB32(void *p, uint32_t v)
+static av_always_inline void AV_WB32(void *p, uint32_t v)
 {
     __asm__ ("st.w %0, %1" : "=m"(*(uint32_t*)p) : "r"(v));
 }
@@ -110,7 +110,7 @@ static inline void AV_WB32(void *p, uint
 #define AV_WL32(p, v) AV_WB32(p, bswap_32(v))
 
 #define AV_WB64 AV_WB64
-static inline void AV_WB64(void *p, uint64_t v)
+static av_always_inline void AV_WB64(void *p, uint64_t v)
 {
     union { uint64_t v; uint32_t hl[2]; } vv = { v };
     AV_WB32(p, vv.hl[0]);
@@ -118,7 +118,7 @@ static inline void AV_WB64(void *p, uint
 }
 
 #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 };
     AV_WL32(p, vv.hl[1]);
@@ -128,7 +128,7 @@ static inline void AV_WL64(void *p, uint
 #else /* ARCH_AVR32_AP */
 
 #define AV_RB32 AV_RB32
-static inline uint32_t AV_RB32(const void *p)
+static av_always_inline uint32_t AV_RB32(const void *p)
 {
     uint32_t v;
     __asm__ ("ld.ub    %0,   %4  \n\t"
@@ -144,7 +144,7 @@ static inline uint32_t AV_RB32(const voi
 }
 
 #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__ ("ld.ub    %0,   %1  \n\t"
@@ -162,7 +162,7 @@ static inline uint32_t AV_RL32(const voi
 #endif /* ARCH_AVR32_AP */
 
 #define AV_RB64 AV_RB64
-static inline uint64_t AV_RB64(const void *p)
+static av_always_inline uint64_t AV_RB64(const void *p)
 {
     union { uint64_t v; uint32_t hl[2]; } v;
     v.hl[0] = AV_RB32(p);
@@ -171,7 +171,7 @@ static inline uint64_t AV_RB64(const voi
 }
 
 #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;
     v.hl[1] = AV_RL32(p);

Modified: trunk/libavutil/mips/intreadwrite.h
==============================================================================
--- trunk/libavutil/mips/intreadwrite.h	Mon Jan 18 02:25:57 2010	(r21277)
+++ trunk/libavutil/mips/intreadwrite.h	Mon Jan 18 02:35:19 2010	(r21278)
@@ -25,7 +25,7 @@
 #include "config.h"
 
 #define AV_RN32 AV_RN32
-static inline uint32_t AV_RN32(const void *p)
+static av_always_inline uint32_t AV_RN32(const void *p)
 {
     uint32_t v;
     __asm__ ("lwl %0, %1  \n\t"
@@ -37,7 +37,7 @@ static inline uint32_t AV_RN32(const voi
 }
 
 #define AV_WN32 AV_WN32
-static inline void AV_WN32(void *p, uint32_t v)
+static av_always_inline void AV_WN32(void *p, uint32_t v)
 {
     __asm__ ("swl %2, %0  \n\t"
              "swr %2, %1  \n\t"
@@ -49,7 +49,7 @@ static inline void AV_WN32(void *p, uint
 #if ARCH_MIPS64
 
 #define AV_RN64 AV_RN64
-static inline uint64_t AV_RN64(const void *p)
+static av_always_inline uint64_t AV_RN64(const void *p)
 {
     uint64_t v;
     __asm__ ("ldl %0, %1  \n\t"
@@ -61,7 +61,7 @@ static inline uint64_t AV_RN64(const voi
 }
 
 #define AV_WN64 AV_WN64
-static inline void AV_WN64(void *p, uint64_t v)
+static av_always_inline void AV_WN64(void *p, uint64_t v)
 {
     __asm__ ("sdl %2, %0  \n\t"
              "sdr %2, %1  \n\t"
@@ -73,7 +73,7 @@ static inline void AV_WN64(void *p, uint
 #else
 
 #define AV_RN64 AV_RN64
-static inline uint64_t AV_RN64(const void *p)
+static av_always_inline uint64_t AV_RN64(const void *p)
 {
     union { uint64_t v; uint32_t hl[2]; } v;
     v.hl[0] = AV_RN32(p);
@@ -82,7 +82,7 @@ static inline uint64_t AV_RN64(const voi
 }
 
 #define AV_WN64 AV_WN64
-static inline void AV_WN64(void *p, uint64_t v)
+static av_always_inline void AV_WN64(void *p, uint64_t v)
 {
     union { uint64_t v; uint32_t hl[2]; } vv = { v };
     AV_WN32(p, vv.hl[0]);

Modified: trunk/libavutil/ppc/intreadwrite.h
==============================================================================
--- trunk/libavutil/ppc/intreadwrite.h	Mon Jan 18 02:25:57 2010	(r21277)
+++ trunk/libavutil/ppc/intreadwrite.h	Mon Jan 18 02:35:19 2010	(r21278)
@@ -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 voi
 }
 
 #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 voi
 }
 
 #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, uint
 #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 voi
 }
 
 #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, uint
 #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 voi
 }
 
 #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"



More information about the ffmpeg-cvslog mailing list