mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-12 06:29:58 +00:00
Add general-use branch-prediction macros
This commit is contained in:
parent
b8c44b81ab
commit
b4516b49df
@ -203,4 +203,8 @@ extern FILE *error_log;
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
// branch prediction
|
||||
#define LIKELY(x) __builtin_expect((x), true)
|
||||
#define UNLIKELY(x) __builtin_expect((x), false)
|
||||
|
||||
#endif // whole file
|
||||
|
Loading…
x
Reference in New Issue
Block a user