core: add LIKELY and UNLIKELY macros
helps the compiler optimize
This commit is contained in:
parent
2bad73354a
commit
b7a3c45269
58 changed files with 395 additions and 396 deletions
|
|
@ -114,3 +114,6 @@
|
|||
namespace Aquamarine { \
|
||||
class name; \
|
||||
}
|
||||
|
||||
#define UNLIKELY(expr) (expr) [[unlikely]]
|
||||
#define LIKELY(expr) (expr) [[likely]]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue