lkml.org 
[lkml]   [2005]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [RFC][PATCH] NTP shift_right cleanup (v. A1)
    From
    Date
    On Wed, 2005-09-14 at 10:48 -0700, john stultz wrote:
    > +/* Required to safely shift negative values */
    > +#define shift_right(x, s) ({ \
    > + __typeof__(x) __x = x; \
    > + __typeof__(s) __s = s; \
    > + (__x < 0) ? (-((-__x) >> (__s))) : ((__x) >> (__s)); \
    > +})
    > +

    Ah, crud. Scratch that. I forgot to check in the paren change suggested
    by Roman. A new patch will follow shortly.

    thanks
    -john


    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-09-14 19:58    [W:3.819 / U:0.108 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site