Re: ALIGN via ilog2 without gccisms (Re: [PATCH] Fix get_order())

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oleg Verych
Date: Wednesday, March 7, 2007 - 10:24 am

On Wed, Mar 07, 2007 at 08:38:27AM -0800, Linus Torvalds wrote:

GCC's assembler version of this macro is optimized as needed.

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

,-*- [ Message-ID: <20061127044138.GA3078@ftp.linux.org.uk> ]
|IOW, gcc allows type to leak out of scope it's been defined in (and
|typeof adds even more fun to the picture).  It not only goes against
|a _lot_ in C, it's actually not thought through by gcc folks.  Just
|try to mix that with variable-length arrays and watch it blow up
|in interesting ways...
`-*-

As for me, this is example of assembler's need, that very hard to
implement in C. Also, i doubt, C's shift doing any "type fluff" on its
only argument.


Yes, maybe so.
____

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Fix get_order(), David Howells, (Tue Mar 6, 10:39 am)
Re: [PATCH] Fix get_order(), H. Peter Anvin, (Tue Mar 6, 10:58 am)
Re: [PATCH] Fix get_order() , David Howells, (Tue Mar 6, 11:21 am)
Re: [PATCH] Fix get_order(), Linus Torvalds, (Tue Mar 6, 11:41 am)
Re: [PATCH] Fix get_order() , David Howells, (Tue Mar 6, 11:51 am)
Re: [PATCH] Fix get_order(), Linus Torvalds, (Tue Mar 6, 8:28 pm)
Re: [PATCH] Fix get_order() , David Howells, (Wed Mar 7, 4:43 am)
Re: ALIGN via ilog2 without gccisms (Re: [PATCH] Fix get_o ..., Oleg Verych, (Wed Mar 7, 10:24 am)
Re: ALIGN (Re: [PATCH] Fix get_order()), Oleg Verych, (Fri Mar 9, 4:13 pm)
Re: ALIGN (Re: [PATCH] Fix get_order()), Linus Torvalds, (Fri Mar 9, 4:15 pm)
Re: ALIGN (Re: [PATCH] Fix get_order()), Oleg Verych, (Fri Mar 9, 5:31 pm)
Re: ALIGN, Oleg Verych, (Sat Mar 10, 1:01 am)