12 |
#define DPRINTF_MV 0x00000040 |
#define DPRINTF_MV 0x00000040 |
13 |
#define DPRINTF_DEBUG 0x80000000 |
#define DPRINTF_DEBUG 0x80000000 |
14 |
|
|
15 |
|
|
16 |
|
#ifdef _DEBUG |
17 |
// debug level |
// debug level |
18 |
#define DPRINTF_LEVEL 0 |
#define DPRINTF_LEVEL 0x0000000f |
19 |
|
#else |
20 |
|
#define DPRINTF_LEVEL 0x0 |
21 |
|
#endif |
22 |
|
|
23 |
|
|
24 |
#define DPRINTF_BUF_SZ 1024 |
#define DPRINTF_BUF_SZ 1024 |
110 |
return ts; |
return ts; |
111 |
} |
} |
112 |
|
|
113 |
#elif defined(LINUX) || defined(DJGPP) || defined(FREEBSD) |
#elif defined(LINUX) || defined(DJGPP) || defined(FREEBSD) || defined(BEOS) |
114 |
|
|
115 |
#include <stdio.h> |
#include <stdio.h> |
116 |
#include <stdarg.h> |
#include <stdarg.h> |
148 |
#define DEBUGCBR(A,B,C) |
#define DEBUGCBR(A,B,C) |
149 |
#endif |
#endif |
150 |
|
|
151 |
#if defined(LINUX) |
#if defined(LINUX) || defined(BEOS) |
152 |
|
|
153 |
|
#if defined(BEOS) |
154 |
|
#include <inttypes.h> |
155 |
|
#else |
156 |
#include <stdint.h> |
#include <stdint.h> |
157 |
|
#endif |
158 |
|
|
159 |
#define DECLARE_ALIGNED_MATRIX(name,sizex,sizey,type,alignment) \ |
#define DECLARE_ALIGNED_MATRIX(name,sizex,sizey,type,alignment) \ |
160 |
type name##_storage[(sizex)*(sizey)+(alignment)-1]; \ |
type name##_storage[(sizex)*(sizey)+(alignment)-1]; \ |
300 |
|
|
301 |
#else // OTHER OS |
#else // OTHER OS |
302 |
|
|
303 |
|
#define DECLARE_ALIGNED_MATRIX(name,sizex,sizey,type,alignment) \ |
304 |
|
__declspec(align(alignment)) type name[(sizex)*(sizey)] |
305 |
|
|
306 |
#include <stdio.h> |
#include <stdio.h> |
307 |
#include <stdarg.h> |
#include <stdarg.h> |