aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/bswap.h
diff options
context:
space:
mode:
authorZuxy Meng <zuxy.meng@gmail.com>2008-03-18 15:27:15 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2008-03-18 15:27:15 +0000
commit6544f48f038552973a552401cea5d4e8f1fc9c0a (patch)
treedf001b9633d7c0cd7407cc0566e21917edf73d7b /libavutil/bswap.h
parent38c669d853dfa60a73bf59695ff03e7104650623 (diff)
downloadffmpeg-6544f48f038552973a552401cea5d4e8f1fc9c0a.tar.gz
Pure, const and malloc attributes to libavutil.
Patch by Zuxy Meng: zuxy meng gmail com Original thread: [FFmpeg-devel] [PATCH] Pure, const and malloc attributes to libavutil Date: 03/18/2008 6:09 AM Originally committed as revision 12489 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/bswap.h')
-rw-r--r--libavutil/bswap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/bswap.h b/libavutil/bswap.h
index a49e6e2c0a..49bcfbd82f 100644
--- a/libavutil/bswap.h
+++ b/libavutil/bswap.h
@@ -40,7 +40,7 @@
# define LEGACY_REGS "=q"
#endif
-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" :
@@ -54,7 +54,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
@@ -93,7 +93,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);