summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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