aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-12-05 21:50:55 -0800
committerChris Robinson <[email protected]>2022-12-05 21:50:55 -0800
commitc55d6d8c345223c062dfdbd747fb13a8fd44aad5 (patch)
tree5d9b8343eb03f495904de14e57d61611a94e38b5 /common
parent4de5c7dfeebc2335ad3d7c2dd4905284677a68c9 (diff)
Avoid LIKELY/UNLIKELY macros
Diffstat (limited to 'common')
-rw-r--r--common/opthelpers.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/common/opthelpers.h b/common/opthelpers.h
index 5fe455da..105ca89f 100644
--- a/common/opthelpers.h
+++ b/common/opthelpers.h
@@ -27,12 +27,10 @@
#define alunlikely
#endif
-#define LIKELY(x) (x) [[allikely]]
-#define UNLIKELY(x) (x) [[alunlikely]]
-
-/* Unlike LIKELY, ASSUME requires the condition to be true or else it invokes
- * undefined behavior. It's essentially an assert without actually checking the
- * condition at run-time, allowing for stronger optimizations than LIKELY.
+/* Unlike the likely attribute, ASSUME requires the condition to be true or
+ * else it invokes undefined behavior. It's essentially an assert without
+ * actually checking the condition at run-time, allowing for stronger
+ * optimizations than the likely attribute.
*/
#if HAS_BUILTIN(__builtin_assume)
#define ASSUME __builtin_assume