psxinterpreter: yet more exceptions, new config option
[pcsx_rearmed.git] / include / compiler_features.h
CommitLineData
905b7c25 1
2#ifdef __GNUC__
3# define likely(x) __builtin_expect((x),1)
4# define unlikely(x) __builtin_expect((x),0)
bc7c5acb 5# define noinline __attribute__((noinline))
905b7c25 6#else
7# define likely(x) (x)
8# define unlikely(x) (x)
bc7c5acb 9# define noinline
905b7c25 10#endif
11
12#ifndef __has_builtin
13#define __has_builtin(x) 0
14#endif
15