From 49ba646d579a89d5ff0e4f3d5eea237eea22aafd Mon Sep 17 00:00:00 2001 From: Mohamed Tarek Date: Tue, 12 May 2009 20:50:35 +0000 Subject: -Remove all dynamic allocations, hence remove cook_decode_close() which was basically needed for freeing allocated memory. -Remove any ffmpeg-specific attributes (av_const,av_always_inline .. etc.). -Move some math functions to cook_fixpoint.h - libavutil/common.h is no longer needed. -Remove libavutil/mem.[c/h], libavutil/common.h and libavutil/internal.h. -Fix a warning in cookdata_fixpoint.h. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20922 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libcook/libavutil/bswap.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/codecs/libcook/libavutil/bswap.h') diff --git a/apps/codecs/libcook/libavutil/bswap.h b/apps/codecs/libcook/libavutil/bswap.h index 9175cb24a5..443cd1c3f9 100644 --- a/apps/codecs/libcook/libavutil/bswap.h +++ b/apps/codecs/libcook/libavutil/bswap.h @@ -28,7 +28,7 @@ #include //#include "ffmpeg_config.h" -#include "common.h" +//#include "common.h" #if ARCH_ARM # include "arm/bswap.h" @@ -41,7 +41,7 @@ #endif #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; @@ -49,7 +49,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); @@ -58,7 +58,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); -- cgit v1.2.3