lkml.org 
[lkml]   [2007]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ALIGN via ilog2 without gccisms (Re: [PATCH] Fix get_order())


On Wed, 7 Mar 2007, Oleg Verych wrote:
>
> GCC's assembler version of this macro is optimized as needed.

Not fora non-constant mask, I bet.

> But i wanted to address Al's statement about using typeof():

Well, that doesn't affect ALIGN(), since you can only use ALIGN() on an
arithmetic type anyway (and only within scope). So the odd corner cases
with typeof leaking data outside of the scope is not an issue.

Linus
-
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: 2007-03-07 19:09    [W:0.048 / U:0.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site