mirror of https://github.com/mgba-emu/mgba.git
Add likely/unlikely macros
This commit is contained in:
parent
c9f0ac5c7b
commit
37554a40ea
|
@ -61,4 +61,7 @@
|
|||
}
|
||||
|
||||
#define DECL_BIT(TYPE, FIELD, BIT) DECL_BITS(TYPE, FIELD, BIT, 1)
|
||||
|
||||
#define LIKELY(X) __builtin_expect(!!(X), 1)
|
||||
#define UNLIKELY(X) __builtin_expect(!!(X), 0)
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue