diff options
author | Tomasz Malesinski <tomal@rockbox.org> | 2006-11-09 21:59:27 +0000 |
---|---|---|
committer | Tomasz Malesinski <tomal@rockbox.org> | 2006-11-09 21:59:27 +0000 |
commit | 5c54ba49d5c05e394a31f3827f7c4a75e28d9999 (patch) | |
tree | 096c978d3e4d259cc6cf08ee5ccdd4414d06c013 /apps/codecs/libffmpegFLAC/bitstream.h | |
parent | 2e383a430de025378bf17942a1cf5ea86860f700 (diff) | |
download | rockbox-5c54ba49d5c05e394a31f3827f7c4a75e28d9999.tar.gz rockbox-5c54ba49d5c05e394a31f3827f7c4a75e28d9999.zip |
Added macros controlling what goes to IRAM on different targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11483 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libffmpegFLAC/bitstream.h')
-rw-r--r-- | apps/codecs/libffmpegFLAC/bitstream.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/apps/codecs/libffmpegFLAC/bitstream.h b/apps/codecs/libffmpegFLAC/bitstream.h index 288d839c4a..19f2b6e01c 100644 --- a/apps/codecs/libffmpegFLAC/bitstream.h +++ b/apps/codecs/libffmpegFLAC/bitstream.h | |||
@@ -18,6 +18,14 @@ | |||
18 | #define ICODE_ATTR | 18 | #define ICODE_ATTR |
19 | #endif | 19 | #endif |
20 | 20 | ||
21 | #ifndef ICODE_ATTR_FLAC | ||
22 | #define ICODE_ATTR_FLAC ICODE_ATTR | ||
23 | #endif | ||
24 | |||
25 | #ifndef IBSS_ATTR_FLAC_DECODED0 | ||
26 | #define IBSS_ATTR_FLAC_DECODED0 IBSS_ATTR | ||
27 | #endif | ||
28 | |||
21 | /* Endian conversion routines for standalone compilation */ | 29 | /* Endian conversion routines for standalone compilation */ |
22 | #ifdef BUILD_STANDALONE | 30 | #ifdef BUILD_STANDALONE |
23 | #ifdef BUILD_BIGENDIAN | 31 | #ifdef BUILD_BIGENDIAN |
@@ -252,7 +260,7 @@ static inline unsigned int get_bits(GetBitContext *s, int n){ | |||
252 | return tmp; | 260 | return tmp; |
253 | } | 261 | } |
254 | 262 | ||
255 | unsigned int get_bits_long(GetBitContext *s, int n) ICODE_ATTR; | 263 | unsigned int get_bits_long(GetBitContext *s, int n) ICODE_ATTR_FLAC; |
256 | 264 | ||
257 | /** | 265 | /** |
258 | * shows 0-17 bits. | 266 | * shows 0-17 bits. |
@@ -267,7 +275,7 @@ static inline unsigned int show_bits(GetBitContext *s, int n){ | |||
267 | return tmp; | 275 | return tmp; |
268 | } | 276 | } |
269 | 277 | ||
270 | unsigned int show_bits_long(GetBitContext *s, int n) ICODE_ATTR; | 278 | unsigned int show_bits_long(GetBitContext *s, int n) ICODE_ATTR_FLAC; |
271 | 279 | ||
272 | static inline void skip_bits(GetBitContext *s, int n){ | 280 | static inline void skip_bits(GetBitContext *s, int n){ |
273 | //Note gcc seems to optimize this to s->index+=n for the ALT_READER :)) | 281 | //Note gcc seems to optimize this to s->index+=n for the ALT_READER :)) |
@@ -328,6 +336,6 @@ static inline void init_get_bits(GetBitContext *s, | |||
328 | } | 336 | } |
329 | } | 337 | } |
330 | 338 | ||
331 | void align_get_bits(GetBitContext *s) ICODE_ATTR; | 339 | void align_get_bits(GetBitContext *s) ICODE_ATTR_FLAC; |
332 | 340 | ||
333 | #endif /* BITSTREAM_H */ | 341 | #endif /* BITSTREAM_H */ |