Thread (16 messages) 16 messages, 5 authors, 2016-10-06

Re: [PATCH] bluetooth.h: __ variants of u8 and friends are not neccessary inside kernel

flat view

From: Joe Perches <joe@perches.com>
Date: 2016-10-06 07:08:02
Also in: lkml, netdev

On Thu, 2016-10-06 at 09:02 +0200, Pavel Machek wrote:
I believe you are wrong. bit addressability does not matter, cpu can
definitely get the bit values.

u8 foo:1;
u8 bar:1;
u8 baz:1;

should take 1 byte, where

bool foo, bar, baz;

will take more like 3.
Definitely true.

There is only one single bitfield foo here though
so what you wrote doesn't apply.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help