lkml.org 
[lkml]   [2010]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC][PATCH 7/12 not tested yet] PPC: introduce __set_bit() like function for bitmaps in user space

    >>
    >> +static inline int set_bit_user_non_atomic(int nr, void __user *addr)
    >> +{
    >> + u8 __user *p;
    >> + u8 val;
    >> +
    >> + p = (u8 __user *)((unsigned long)addr + nr / BITS_PER_BYTE);
    >>
    >
    > Does C do the + or the / first? Either way, I'd like to see brackets here :)

    OK, I'll change like that! I like brackets style too :)

    >
    >
    > Alex
    >



    \
     
     \ /
      Last update: 2010-05-12 11:23    [W:0.019 / U:1.860 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site