Re: [PATCH] bitops.h: Widen BIT macro to support 64-bit types

From: Matthew Wilcox
Date: Thu Oct 14 2010 - 07:12:21 EST


On Thu, Oct 14, 2010 at 12:58:55PM +0200, Borislav Petkov wrote:
> #ifdef __KERNEL__
> -#define BIT(nr) (1UL << (nr))
> +#define BIT(nr) (U64_C(1) << (nr))

Why not just use 1ULL instead?

--
Matthew Wilcox Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/