add 68k overclocking support
[picodrive.git] / pico / pico_port.h
CommitLineData
bce14421 1#ifndef PICO_PORT_INCLUDED
2#define PICO_PORT_INCLUDED
3
4#if defined(__GNUC__) && defined(__i386__)
5#define REGPARM(x) __attribute__((regparm(x)))
6#else
7#define REGPARM(x)
8#endif
9
10#ifdef __GNUC__
11#define NOINLINE __attribute__((noinline))
12#define ALIGNED(n) __attribute__((aligned(n)))
35f2b65e 13#define unlikely(x) __builtin_expect((x), 0)
bce14421 14#else
15#define NOINLINE
16#define ALIGNED(n)
35f2b65e 17#define unlikely(x) (x)
bce14421 18#endif
19
24aab4da 20#ifdef _MSC_VER
21#define snprintf _snprintf
22#define strcasecmp _stricmp
23#define strncasecmp _strnicmp
24#define strdup _strdup
25#endif
26
bce14421 27#endif // PICO_PORT_INCLUDED