mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[all] provide conditional path optimization hints to the compiler
This commit is contained in:
@@ -40,4 +40,7 @@
|
||||
|
||||
#define ALIGN_TO(value, align) (((value) + (align) - 1) & -(align))
|
||||
|
||||
#define unlikely(expr) __builtin_expect(!!(expr), 0)
|
||||
#define likely(expr) __builtin_expect(!!(expr), 1)
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user