All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michel Dänzer" <michel@daenzer.net>
To: Alex Deucher <alexdeucher@gmail.com>
Cc: Maling list - DRI developers <dri-devel@lists.freedesktop.org>
Subject: Re: bitfield structures
Date: Fri, 17 Oct 2014 17:55:35 +0900	[thread overview]
Message-ID: <5440D987.90001@daenzer.net> (raw)
In-Reply-To: <CADnq5_MNf4L2eqe0xA7dwLMj=4zfL3UsO_H9cvJMQfz93FUOeA@mail.gmail.com>

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

  parent reply	other threads:[~2014-10-17  8:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-16 14:14 bitfield structures Alex Deucher
2014-10-16 15:33 ` Jerome Glisse
2014-10-16 15:57 ` Peter Hurley
2014-10-16 15:57 ` Eric Anholt
2014-10-16 19:16 ` Christian König
2014-10-16 21:14   ` Dave Airlie
2014-10-17  8:55 ` Michel Dänzer [this message]
2014-10-17 11:19 ` Rob Clark
2014-10-17 15:00   ` Alex Deucher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5440D987.90001@daenzer.net \
    --to=michel@daenzer.net \
    --cc=alexdeucher@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.