summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-12-15 17:01:04 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-12-15 17:01:04 +1100
commit971e7410f0c3e65a956b3a8f95739a35978e6ccb (patch)
tree2c88070deb90292e75acb3f563b2966d450c6cc6
parentc8c64252eb57241a73b1c9e4e332d82580220fde (diff)
downloadffs-971e7410f0c3e65a956b3a8f95739a35978e6ccb.zip
ffs-971e7410f0c3e65a956b3a8f95739a35978e6ccb.tar.gz
Remove #define parity __builtin_parity
we already used __builtin_parityll explicitly, no need to keep around this define Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--clib/builtin.h9
-rw-r--r--clib/src/tree.c2
2 files changed, 1 insertions, 10 deletions
diff --git a/clib/builtin.h b/clib/builtin.h
index a6dc820..f0089b0 100644
--- a/clib/builtin.h
+++ b/clib/builtin.h
@@ -33,15 +33,6 @@
#define __BUILTIN_H__
/*!
- * @def parity(x)
- * @hideinitializer
- * @brief Return parity of the input
- * @param x [in] Object
- */
-#define parity(x) __builtin_parity((x))
-#define ffs(x) __builtin_ffs((x))
-
-/*!
* @def popcount(x)
* @hideinitializer
* @brief Return number of 0b'1' bits of an int
diff --git a/clib/src/tree.c b/clib/src/tree.c
index 45a18e3..60db5cc 100644
--- a/clib/src/tree.c
+++ b/clib/src/tree.c
@@ -590,7 +590,7 @@ int splay_remove(tree_t * self, tree_node_t * node)
}
#else
if (self->root->left != NULL && self->root->right != NULL) {
- if (parity(int64_hash1((int64_t) self->root))) {
+ if (__builtin_parity(int64_hash1((int64_t) self->root))) {
x = splay(self->root->left, node->key,
self->compare);
x->right = self->root->right;
OpenPOWER on IntegriCloud