summaryrefslogtreecommitdiffstats
path: root/clib/builtin.h
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-12-15 16:59:35 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-12-15 16:59:35 +1100
commitc8c64252eb57241a73b1c9e4e332d82580220fde (patch)
tree5f45d14720433e864ea5cd3694d79841445b6981 /clib/builtin.h
parent67c96c6d2e76a8cce19988839f2ebcc1793445e2 (diff)
downloadffs-c8c64252eb57241a73b1c9e4e332d82580220fde.tar.gz
ffs-c8c64252eb57241a73b1c9e4e332d82580220fde.zip
remove likely/unlikely: nothing is *that* perf critical
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'clib/builtin.h')
-rw-r--r--clib/builtin.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/clib/builtin.h b/clib/builtin.h
index 5a7ac08..a6dc820 100644
--- a/clib/builtin.h
+++ b/clib/builtin.h
@@ -33,22 +33,6 @@
#define __BUILTIN_H__
/*!
- * @def likely(x)
- * @hideinitializer
- * @brief Indicate an expression is likely to occur
- * @param x [in] Expression
- */
-#define likely(x) __builtin_expect(!!(x), 1)
-
-/*!
- * @def unlikely(x)
- * @hideinitializer
- * @brief Indicate an expression is unlikely to occur
- * @param x [in] Expression
- */
-#define unlikely(x) __builtin_expect(!!(x), 0)
-
-/*!
* @def parity(x)
* @hideinitializer
* @brief Return parity of the input
OpenPOWER on IntegriCloud