From 4e945783664221b428c0228248dc74278d86f524 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Wed, 7 Dec 2011 20:51:03 +0100 Subject: Use long long variants of GCC's built-in procedures, just to be safe. --- bitmapped_patricia_tree.c | 6 +++--- 1 file 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) { -- cgit v1.2.3