diff options
Diffstat (limited to 'apps/codecs/libwma/common.h')
-rw-r--r-- | apps/codecs/libwma/common.h | 60 |
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 | |||
51 | inline 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 | |||
70 | extern 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 | ||