aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-12-07 20:51:03 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-12-07 20:51:03 +0100
commit4e945783664221b428c0228248dc74278d86f524 (patch)
treed3eb695723d20967ae6369facc1670ae3c112c0e
parenta1843b44f360ad32f2c379bdb2e7338b1afa74f2 (diff)
Use long long variants of GCC's built-in procedures, just to be safe.
-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) {