summaryrefslogtreecommitdiff
path: root/apps/codecs/libwmapro/libavutil/internal.h
diff options
context:
space:
mode:
authorMohamed Tarek <mt@rockbox.org>2010-07-14 19:37:52 +0000
committerMohamed Tarek <mt@rockbox.org>2010-07-14 19:37:52 +0000
commitd63abfc7eb7db5eb36b325198fbb6ceaf8778685 (patch)
treedc9496f504711569180fd9c5a91cf6e748815869 /apps/codecs/libwmapro/libavutil/internal.h
parent16284ae8aef30ec67d7fd9c34519bce17d64ab3a (diff)
downloadrockbox-d63abfc7eb7db5eb36b325198fbb6ceaf8778685.tar.gz
rockbox-d63abfc7eb7db5eb36b325198fbb6ceaf8778685.zip
Add WMA Pro to the main build. WMA Pro now plays on target and decodes in 151% realtime in a 320kbps sample on a sansa e200. Lots of cleanup still need to be done, and optimisations should start soon too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27417 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libwmapro/libavutil/internal.h')
-rw-r--r--apps/codecs/libwmapro/libavutil/internal.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/apps/codecs/libwmapro/libavutil/internal.h b/apps/codecs/libwmapro/libavutil/internal.h
index 97087e462a..87a4d3ec10 100644
--- a/apps/codecs/libwmapro/libavutil/internal.h
+++ b/apps/codecs/libwmapro/libavutil/internal.h
@@ -55,7 +55,8 @@
55#endif 55#endif
56 56
57#ifndef av_alias 57#ifndef av_alias
58#if HAVE_ATTRIBUTE_MAY_ALIAS && (!defined(__ICC) || __ICC > 1110) && AV_GCC_VERSION_AT_LEAST(3,3) 58//#if HAVE_ATTRIBUTE_MAY_ALIAS && (!defined(__ICC) || __ICC > 1110) && AV_GCC_VERSION_AT_LEAST(3,3)
59#if 0
59# define av_alias __attribute__((may_alias)) 60# define av_alias __attribute__((may_alias))
60#else 61#else
61# define av_alias 62# define av_alias
@@ -106,7 +107,8 @@
106#define LABEL_MANGLE(a) EXTERN_PREFIX #a 107#define LABEL_MANGLE(a) EXTERN_PREFIX #a
107 108
108// Use rip-relative addressing if compiling PIC code on x86-64. 109// Use rip-relative addressing if compiling PIC code on x86-64.
109#if ARCH_X86_64 && defined(PIC) 110//#if ARCH_X86_64 && defined(PIC)
111#if 0
110# define LOCAL_MANGLE(a) #a "(%%rip)" 112# define LOCAL_MANGLE(a) #a "(%%rip)"
111#else 113#else
112# define LOCAL_MANGLE(a) #a 114# define LOCAL_MANGLE(a) #a
@@ -127,7 +129,8 @@
127 129
128/* math */ 130/* math */
129 131
130#if ARCH_X86 132//#if ARCH_X86
133#if 0
131#define MASK_ABS(mask, level)\ 134#define MASK_ABS(mask, level)\
132 __asm__ volatile(\ 135 __asm__ volatile(\
133 "cltd \n\t"\ 136 "cltd \n\t"\
@@ -198,10 +201,10 @@
198 * without modification. Used to disable the definition of strings 201 * without modification. Used to disable the definition of strings
199 * (for example AVCodec long_names). 202 * (for example AVCodec long_names).
200 */ 203 */
201#if CONFIG_SMALL 204//#if CONFIG_SMALL
202# define NULL_IF_CONFIG_SMALL(x) NULL 205//# define NULL_IF_CONFIG_SMALL(x) NULL
203#else 206//#else
204# define NULL_IF_CONFIG_SMALL(x) x 207//# define NULL_IF_CONFIG_SMALL(x) x
205#endif 208//#endif
206 209
207#endif /* AVUTIL_INTERNAL_H */ 210#endif /* AVUTIL_INTERNAL_H */