mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-06-05 13:18:58 -04:00
reduce probability hint for is_memtag_enabled
This commit is contained in:
parent
e86192e7fe
commit
6402e2b0d4
2 changed files with 11 additions and 9 deletions
2
util.h
2
util.h
|
@ -9,7 +9,9 @@
|
|||
#define noreturn __attribute__((noreturn))
|
||||
|
||||
#define likely(x) __builtin_expect(!!(x), 1)
|
||||
#define likely51(x) __builtin_expect_with_probability(!!(x), 1, 0.51)
|
||||
#define unlikely(x) __builtin_expect(!!(x), 0)
|
||||
#define unlikely51(x) __builtin_expect_with_probability(!!(x), 0, 0.51)
|
||||
|
||||
#define min(x, y) ({ \
|
||||
__typeof__(x) _x = (x); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue