mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-05-14 05:52:49 +00:00
some fixes and optimizations
This commit is contained in:
parent
188f821778
commit
9e9468b453
4 changed files with 29 additions and 21 deletions
7
likely.h
Normal file
7
likely.h
Normal file
|
@ -0,0 +1,7 @@
|
|||
#ifdef __GNUC__
|
||||
#define likely(x) __builtin_expect(!!(x), 1)
|
||||
#define unlikely(x) __builtin_expect(!!(x), 0)
|
||||
#else
|
||||
#define likely(x) (x)
|
||||
#define unlikely(x) (x)
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue