71 |
#define DPRINTF_MB 0x00000010 |
#define DPRINTF_MB 0x00000010 |
72 |
#define DPRINTF_COEFF 0x00000020 |
#define DPRINTF_COEFF 0x00000020 |
73 |
#define DPRINTF_MV 0x00000040 |
#define DPRINTF_MV 0x00000040 |
|
#define DPRINTF_RC 0x00000080 |
|
74 |
#define DPRINTF_DEBUG 0x80000000 |
#define DPRINTF_DEBUG 0x80000000 |
75 |
|
|
76 |
/* debug level for this library */ |
/* debug level for this library */ |
77 |
#ifdef _DEBUG |
#define DPRINTF_LEVEL 0 |
|
#define DPRINTF_LEVEL (DPRINTF_RC|0x0000000f) |
|
|
#else |
|
|
#define DPRINTF_LEVEL DPRINTF_RC |
|
|
#endif |
|
78 |
|
|
79 |
/* Buffer size for non C99 compliant compilers (msvc) */ |
/* Buffer size for non C99 compliant compilers (msvc) */ |
80 |
#define DPRINTF_BUF_SZ 1024 |
#define DPRINTF_BUF_SZ 1024 |
110 |
| Fallback when using gcc |
| Fallback when using gcc |
111 |
*---------------------------------------------------------------------------*/ |
*---------------------------------------------------------------------------*/ |
112 |
|
|
113 |
#elif defined(__GNUC__) || defined(__ICC) |
#elif defined(__GNUC__) || defined(__ICC__) |
114 |
|
|
115 |
# define int8_t char |
# define int8_t char |
116 |
# define uint8_t unsigned char |
# define uint8_t unsigned char |
140 |
# define CACHE_LINE 32 |
# define CACHE_LINE 32 |
141 |
# define ptr_t uint64_t |
# define ptr_t uint64_t |
142 |
#else |
#else |
143 |
/* todo: fix cache_line 0 operation */ |
# error Architecture not supported. |
|
# define CACHE_LINE 16 |
|
|
# define ptr_t uint32_t |
|
144 |
#endif |
#endif |
145 |
|
|
146 |
/***************************************************************************** |
/***************************************************************************** |
210 |
| msvc unknown architecture |
| msvc unknown architecture |
211 |
*---------------------------------------------------------------------------*/ |
*---------------------------------------------------------------------------*/ |
212 |
# else |
# else |
213 |
/* ANSI C version of BSWAP */ |
# error Architecture not supported. |
|
#define BSWAP(x) \ |
|
|
x = ((((x) & 0xff000000) >> 24) | \ |
|
|
(((x) & 0x00ff0000) >> 8) | \ |
|
|
(((x) & 0x0000ff00) << 8) | \ |
|
|
(((x) & 0x000000ff) << 24)) |
|
|
|
|
|
#define EMMS() |
|
214 |
# endif |
# endif |
215 |
|
|
216 |
|
|
220 |
* GNU CC compiler stuff |
* GNU CC compiler stuff |
221 |
****************************************************************************/ |
****************************************************************************/ |
222 |
|
|
223 |
#elif defined(__GNUC__) || defined(__ICC) /* Compiler test */ |
#elif defined(__GNUC__) || defined(__ICC__) /* Compiler test */ |
224 |
|
|
225 |
/*---------------------------------------------------------------------------- |
/*---------------------------------------------------------------------------- |
226 |
| Common gcc stuff |
| Common gcc stuff |
346 |
| XviD + gcc unsupported Architecture |
| XviD + gcc unsupported Architecture |
347 |
*---------------------------------------------------------------------------*/ |
*---------------------------------------------------------------------------*/ |
348 |
# else |
# else |
349 |
/* ANSI C version of BSWAP */ |
# error Architecture not supported. |
|
#define BSWAP(x) \ |
|
|
x = ((((x) & 0xff000000) >> 24) | \ |
|
|
(((x) & 0x00ff0000) >> 8) | \ |
|
|
(((x) & 0x0000ff00) << 8) | \ |
|
|
(((x) & 0x000000ff) << 24)) |
|
|
|
|
|
#define EMMS() |
|
350 |
# endif /* Architecture checking */ |
# endif /* Architecture checking */ |
351 |
|
|
352 |
/***************************************************************************** |
/***************************************************************************** |