aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bitmapped_patricia_tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitmapped_patricia_tree.c b/bitmapped_patricia_tree.c
index 543ffb8..d276cde 100644
--- a/bitmapped_patricia_tree.c
+++ b/bitmapped_patricia_tree.c
@@ -416,15 +416,15 @@ static inline unsigned int bpt_branching_chunk(bpt_t bpt) {
}
static inline unsigned int bpt_popcount(bpt_key_bitmask_t x) {
- return __builtin_popcount(x);
+ return __builtin_popcountll(x);
}
static inline unsigned int bpt_number_of_leading_zeros(bpt_key_t x) {
- return __builtin_clz(x);
+ return __builtin_clzll(x);
}
static inline unsigned int bpt_number_of_trailing_zeros(bpt_key_t x) {
- return __builtin_ctz(x);
+ return __builtin_ctzll(x);
}
static unsigned int bpt_find_diverging_chunk(bpt_key_t a, bpt_key_t b) {