[lkml]   [2010]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] bitops.h: Widen BIT macro to support 64-bit types
    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."

     \ /
      Last update: 2010-10-14 13:15    [W:0.024 / U:8.912 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site