diff options
author | Zuxy Meng <zuxy.meng@gmail.com> | 2008-03-19 06:17:43 +0000 |
---|---|---|
committer | Zuxy Meng <zuxy.meng@gmail.com> | 2008-03-19 06:17:43 +0000 |
commit | 85074d3c9388123d792995c8f98c9b5d807566b4 (patch) | |
tree | 54440eea962c4864599dd5403fc0244becb24875 /libavutil/bswap.h | |
parent | d1928ac1296a09c658ba64fe5c503979e280a2e0 (diff) | |
download | ffmpeg-85074d3c9388123d792995c8f98c9b5d807566b4.tar.gz |
Reapply r12489: Add pure, const and malloc attributes to proper functions
in libavutil.
Fix a compilation failure in r12489.
Originally committed as revision 12498 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/bswap.h')
-rw-r--r-- | libavutil/bswap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/bswap.h b/libavutil/bswap.h index 64ac5d2384..b35fb51613 100644 --- a/libavutil/bswap.h +++ b/libavutil/bswap.h @@ -34,7 +34,7 @@ #include <byteswap.h> #else -static av_always_inline uint16_t bswap_16(uint16_t x) +static av_always_inline av_const uint16_t bswap_16(uint16_t x) { #if defined(ARCH_X86) asm("rorw $8, %0" : "+r"(x)); @@ -46,7 +46,7 @@ static av_always_inline uint16_t bswap_16(uint16_t x) return x; } -static av_always_inline uint32_t bswap_32(uint32_t x) +static av_always_inline av_const uint32_t bswap_32(uint32_t x) { #if defined(ARCH_X86) #ifdef HAVE_BSWAP @@ -83,7 +83,7 @@ static av_always_inline uint32_t bswap_32(uint32_t x) return x; } -static inline uint64_t bswap_64(uint64_t x) +static inline uint64_t av_const bswap_64(uint64_t x) { #if 0 x= ((x<< 8)&0xFF00FF00FF00FF00ULL) | ((x>> 8)&0x00FF00FF00FF00FFULL); |