From 971e7410f0c3e65a956b3a8f95739a35978e6ccb Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Tue, 15 Dec 2015 17:01:04 +1100 Subject: Remove #define parity __builtin_parity we already used __builtin_parityll explicitly, no need to keep around this define Signed-off-by: Stewart Smith --- clib/builtin.h | 9 --------- clib/src/tree.c | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'clib') diff --git a/clib/builtin.h b/clib/builtin.h index a6dc820..f0089b0 100644 --- a/clib/builtin.h +++ b/clib/builtin.h @@ -32,15 +32,6 @@ #ifndef __BUILTIN_H__ #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 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; -- cgit v1.2.1