lkml.org 
[lkml]   [2015]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH v3 12/37] bpf tools: Collect version and license from ELF sections
On 5/18/15 1:34 PM, Arnaldo Carvalho de Melo wrote:
>
> So, lets take a look at: tools/include/linux/kernel.h... bummer, that
> one wasn't yet moved from tools/perf/util/include/linux/kernel.h there.
> Will do, and then it has this:
>
> #ifndef min
> #define min(x, y) ({ \
> typeof(x) _min1 = (x); \
> typeof(y) _min2 = (y); \
> (void) (&_min1 == &_min2); \
> _min1 < _min2 ? _min1 : _min2; })
> #endif
>
> We should minimize this mess :-)
>

yes. that's even better! Thanks!



\
 
 \ /
  Last update: 2015-05-18 23:21    [W:0.142 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site