bitfield structures
Michel Dänzer
michel at daenzer.net
Fri Oct 17 01:55:35 PDT 2014
On 16.10.2014 23:14, Alex Deucher wrote:
> As part of the amdgpu transition, we are moving to using database
> generated register and packet headers. We have a number of options
> for formatting, some of which involve bitfields (don't worry there
> will also be shift/mask style headers as well which is mainly what we
> use in the code). I think these formats are cleaner for a number of
> cases, however, as far as I know, C does not define the ordering of
> bits within bitfields.
That's only the tip of the iceberg of issues with bit-fields.
No bit-fields, please.
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the dri-devel
mailing list