Re: [RFC][PATCH] bitfields API

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Vegard Nossum
Date: Thursday, August 28, 2008 - 12:38 pm

On Thu, Aug 28, 2008 at 9:02 PM, Pekka J Enberg <penberg@cs.helsinki.fi> wrote:

That looks good to me. If the extra lines are okay with net people, we
can put this in the fixlets branch and make it the norm for dealing
with bitfields in kmemcheck.

One thing to keep in mind that if the members of the bitfield does not
span the entire width of the bitfield, the remaining bits must also be
assigned (as an extra "filler" member), otherwise GCC will not
optimize it to a single store. But that is not an issue in this
particular case since all the bits are used.


Vegard

-- 
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
	-- E. W. Dijkstra, EWD1036
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][PATCH] bitfields API, Vegard Nossum, (Thu Aug 28, 11:32 am)
Re: [RFC][PATCH] bitfields API, Alexey Dobriyan, (Thu Aug 28, 11:40 am)
Re: [RFC][PATCH] bitfields API, Pekka Enberg, (Thu Aug 28, 11:40 am)
Re: [RFC][PATCH] bitfields API, Vegard Nossum, (Thu Aug 28, 11:46 am)
Re: [RFC][PATCH] bitfields API, Pekka J Enberg, (Thu Aug 28, 12:02 pm)
Re: [RFC][PATCH] bitfields API, Alexey Dobriyan, (Thu Aug 28, 12:05 pm)
Re: [RFC][PATCH] bitfields API, Pekka Enberg, (Thu Aug 28, 12:07 pm)
Re: [RFC][PATCH] bitfields API, Vegard Nossum, (Thu Aug 28, 12:18 pm)
Re: [RFC][PATCH] bitfields API, Vegard Nossum, (Thu Aug 28, 12:38 pm)
Re: [RFC][PATCH] bitfields API, Adrian Bunk, (Thu Aug 28, 1:27 pm)
Re: [RFC][PATCH] bitfields API, Pekka Enberg, (Thu Aug 28, 1:54 pm)
Re: [RFC][PATCH] bitfields API, Vegard Nossum, (Thu Aug 28, 1:59 pm)
Re: [RFC][PATCH] bitfields API, Vegard Nossum, (Sat Aug 30, 1:28 am)