Use 32-bit bit functions in patricia trie

This commit is contained in:
~hatteb-mitlyd 2014-05-07 10:15:07 -07:00
parent 7d9c363d65
commit 8fc3eb3e83

View File

@ -435,15 +435,15 @@ static inline unsigned int bpt_branching_chunk(bpt_t bpt) {
}
static inline unsigned int bpt_popcount(bpt_key_bitmask_t x) {
return __builtin_popcountll(x);
return __builtin_popcount(x);
}
static inline unsigned int bpt_number_of_leading_zeros(bpt_key_t x) {
return __builtin_clzll(x);
return __builtin_clz(x);
}
static inline unsigned int bpt_number_of_trailing_zeros(bpt_key_t x) {
return __builtin_ctzll(x);
return __builtin_ctz(x);
}
static unsigned int bpt_find_diverging_chunk(bpt_key_t a, bpt_key_t b) {