diff options
Diffstat (limited to 'apps/codecs/libwmapro/libavutil/bswap.h')
-rw-r--r-- | apps/codecs/libwmapro/libavutil/bswap.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/codecs/libwmapro/libavutil/bswap.h b/apps/codecs/libwmapro/libavutil/bswap.h index e15501778b..82ed2271ac 100644 --- a/apps/codecs/libwmapro/libavutil/bswap.h +++ b/apps/codecs/libwmapro/libavutil/bswap.h @@ -28,10 +28,9 @@ #include <stdint.h> //#include "config.h" -#include "attributes.h" #ifndef bswap_16 -static av_always_inline av_const uint16_t bswap_16(uint16_t x) +static inline uint16_t bswap_16(uint16_t x) { x= (x>>8) | (x<<8); return x; @@ -39,7 +38,7 @@ static av_always_inline av_const uint16_t bswap_16(uint16_t x) #endif #ifndef bswap_32 -static av_always_inline av_const uint32_t bswap_32(uint32_t x) +static inline uint32_t bswap_32(uint32_t x) { x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF); x= (x>>16) | (x<<16); @@ -48,7 +47,7 @@ static av_always_inline av_const uint32_t bswap_32(uint32_t x) #endif #ifndef bswap_64 -static inline uint64_t av_const bswap_64(uint64_t x) +static inline uint64_t bswap_64(uint64_t x) { #if 0 x= ((x<< 8)&0xFF00FF00FF00FF00ULL) | ((x>> 8)&0x00FF00FF00FF00FFULL); |