Re: [PATCH v8 net-next 1/3] filter: add Extended BPF interpreter and converter

From: Linus Torvalds
Date: Mon Mar 10 2014 - 22:05:37 EST


On Mon, Mar 10, 2014 at 7:02 PM, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> So please don't sell "bool" as some kind of panacea. It has at least
> as many problems as it has advantages.

Side note: not that bitfields are all that great either, partly
because gcc tends to occasionally generate absolutely disgusting code
for even simple things, and they have the worse-than-average problems
with byte/bit ordering etc. So quite frankly, often "unsigned int
flags" together with manual accesses is the way to go if you care
about code generation quality. Of course, there's the whole
convenience issue..

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/