lkml.org 
[lkml]   [2017]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Build failure with v4.9-rc1 and GCC trunk -- compiler weirdness
On Wed, Feb 01, 2017 at 11:04:54AM -0800, Joe Perches wrote:
> > +#define order_base_2(n) \
> > +( \
> > + __builtin_constant_p(n) ? ( \
> > + ((n) < 2) ? (n) : \
> > + ilog2((n) - 1) + 1) : \
> > + __order_base_2(n) \
> > + )
>
> Does this work properly when n is a signed negative value?

Do you see it returning a complex number?

\
 
 \ /
  Last update: 2017-02-02 10:02    [W:0.066 / U:0.576 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site