summaryrefslogtreecommitdiff
path: root/apps/codecs/libwma/common.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-07-04 20:45:00 +0000
committerDave Chapman <dave@dchapman.com>2007-07-04 20:45:00 +0000
commit9b96d66621ce0a7266df2f232b60683248d532e8 (patch)
tree877bfb511b11297a554c449c330c6fdd387d6046 /apps/codecs/libwma/common.h
parentba3f4ed565ed9fdfb696f44193958e68d6acc19f (diff)
downloadrockbox-9b96d66621ce0a7266df2f232b60683248d532e8.tar.gz
rockbox-9b96d66621ce0a7266df2f232b60683248d532e8.zip
Yet more dead code removal
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13789 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libwma/common.h')
-rw-r--r--apps/codecs/libwma/common.h60
1 files changed, 0 insertions, 60 deletions
diff --git a/apps/codecs/libwma/common.h b/apps/codecs/libwma/common.h
index dc55dcaed2..b627bfb710 100644
--- a/apps/codecs/libwma/common.h
+++ b/apps/codecs/libwma/common.h
@@ -6,69 +6,9 @@
6#ifndef COMMON_H 6#ifndef COMMON_H
7#define COMMON_H 7#define COMMON_H
8 8
9/* only include the following when compiling package */
10#include "ffmpeg_config.h" 9#include "ffmpeg_config.h"
11
12#include <stdlib.h>
13#include <stdio.h>
14#include <string.h>
15#include <ctype.h>
16#include <math.h>
17#include <stddef.h>
18#include <inttypes.h> 10#include <inttypes.h>
19 11
20#ifndef M_PI
21#define M_PI 3.14159265358979323846
22#endif
23
24#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
25# define always_inline __attribute__((always_inline)) inline
26#else
27# define always_inline inline
28#endif
29
30#ifndef INT64_MAX
31#define INT64_MAX 9223372036854775807LL
32#endif
33
34# if defined(__MINGW32__) || defined(__CYGWIN__) || \
35 defined(__OS2__) || (defined (__OpenBSD__) && !defined(__ELF__))
36# define MANGLE(a) "_" #a
37# else
38# define MANGLE(a) #a
39# endif
40
41/* debug stuff */
42
43# ifndef DEBUG
44# define NDEBUG
45# endif
46# include <assert.h>
47
48/* dprintf macros */
49# if defined(CONFIG_WIN32) && !defined(__MINGW32__)
50
51inline void dprintf(const char* fmt,...) {}
52
53# else
54
55# ifdef DEBUG
56# define dprintf(fmt,...) printf(fmt, __VA_ARGS__)
57# else
58# define dprintf(fmt,...)
59# endif
60
61# endif /* !CONFIG_WIN32 */
62
63# define av_abort() do { av_log(AV_LOG_ERROR, "Abort at %s:%d\n", __FILE__, __LINE__); abort(); } while (0)
64
65//rounded divison & shift
66#define RSHIFT(a,b) ((a) > 0 ? ((a) + (1<<((b)-1)))>>(b) : ((a) + (1<<((b)-1))-1)>>(b))
67/* assume b>0 */
68#define ROUNDED_DIV(a,b) (((a)>0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b))
69
70extern const uint32_t inverse[256];
71
72#define NEG_SSR32(a,s) ((( int32_t)(a))>>(32-(s))) 12#define NEG_SSR32(a,s) ((( int32_t)(a))>>(32-(s)))
73#define NEG_USR32(a,s) (((uint32_t)(a))>>(32-(s))) 13#define NEG_USR32(a,s) (((uint32_t)(a))>>(32-(s)))
74 14