diff mips/intreadwrite.h @ 812:f849545df4e5 libavutil

Mark all intreadwrite functions av_always_inline
author mru
date Mon, 18 Jan 2010 01:35:19 +0000
parents 27154cd3d95b
children
line wrap: on
line diff
--- a/mips/intreadwrite.h	Sun Jan 17 14:17:03 2010 +0000
+++ b/mips/intreadwrite.h	Mon Jan 18 01:35:19 2010 +0000
@@ -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 @@
 }
 
 #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 @@
 #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 @@
 }
 
 #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 @@
 #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 @@
 }
 
 #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]);