Messages in this thread | | | Date | Mon, 10 Mar 2014 19:05:28 -0700 | Subject | Re: [PATCH v8 net-next 1/3] filter: add Extended BPF interpreter and converter | From | Linus Torvalds <> |
| |
On Mon, Mar 10, 2014 at 7:02 PM, Linus Torvalds <torvalds@linux-foundation.org> 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
| |