aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-03-24 14:02:06 -0700
committerChris Robinson <[email protected]>2019-03-24 14:02:06 -0700
commitc8e8ac42abb9225c3abfac036340548cfaaa0e92 (patch)
tree73e90159e18594496d06a1e42ab9ff81335dc635 /common
parentf7ab7b45f7859da9e1ddd2960fcae110a8d10cd1 (diff)
Use false instead of 0 for a boolean
Diffstat (limited to 'common')
-rw-r--r--common/opthelpers.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/opthelpers.h b/common/opthelpers.h
index b496942c..c83229f5 100644
--- a/common/opthelpers.h
+++ b/common/opthelpers.h
@@ -12,9 +12,9 @@
* required to be true, but it can result in more optimal code for the true
* path at the expense of a less optimal false path.
*/
-#define LIKELY(x) __builtin_expect(!!(x), !0)
+#define LIKELY(x) __builtin_expect(!!(x), !false)
/* The opposite of LIKELY, optimizing the case where the condition is false. */
-#define UNLIKELY(x) __builtin_expect(!!(x), 0)
+#define UNLIKELY(x) __builtin_expect(!!(x), false)
/* 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.