From b6e4c08a69bb1bfef48a64fe2431869752168777 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Mon, 16 Dec 2013 15:09:09 +0100 Subject: [PATCH] Uses correct long long constants. --- raid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/raid.c b/raid.c index c0dcaf43..df63498c 100644 --- a/raid.c +++ b/raid.c @@ -362,10 +362,10 @@ static inline uint32_t d2_32(uint32_t v) __attribute__((always_inline)) static inline uint64_t d2_64(uint64_t v) { - uint64_t mask = v & 0x0101010101010101U; + uint64_t mask = v & 0x0101010101010101ULL; mask = (mask << 8) - mask; - v = (v >> 1) & 0x7f7f7f7f7f7f7f7fU; - v ^= mask & 0x8e8e8e8e8e8e8e8eU; + v = (v >> 1) & 0x7f7f7f7f7f7f7f7fULL; + v ^= mask & 0x8e8e8e8e8e8e8e8eULL; return v; }