lkml.org 
[lkml]   [2015]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2 1/4] kernel.h: add find_closest() macro
    On Tue, 10 Mar 2015 18:27:19 +0100 Bartosz Golaszewski <bgolaszewski@baylibre.com> wrote:

    > +/*
    > + * Similar to find_closest(), but 'a' is expected to be sorted
    > + * in descending order.
    > + */
    > +#define find_closest_desc(x, a, as) __find_closest(x, a, as, >)

    description? descriptor? descendent? oh, it's "descending". So
    let's use "descending"!

    I think it's good to put possibly-useful stuff like this into
    includes/linux, particularly when we already have several usage sites.
    But we don't _have_ to keep putting things into kernel.h. Maybe a new
    include/linux/handy-macros.h or include/linux/find_closest.h?



    \
     
     \ /
      Last update: 2015-03-13 00:21    [W:2.712 / U:0.112 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site