qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] pcnet32 driver change, please test


From: M. Warner Losh
Subject: Re: [Qemu-devel] [PATCH] pcnet32 driver change, please test
Date: Fri, 02 Mar 2007 17:53:33 -0700 (MST)

In message: <address@hidden>
            Stuart Brady <address@hidden> writes:
: On Fri, Mar 02, 2007 at 08:09:49PM +0000, Thiemo Seufer wrote:
: > Hello All,
: > 
: > I changed the pcnet32 driver to get rid of bitfields in its
: > implementation, now it works also on big endian host systems.
: 
: I find this curious...  C99 (6.7.2.1) says "the allocation order of
: bit-fields within a unit (high-order to low-order or low-order to
: high-order) is implementation defined".  I can't see any requirement
: for this, so is it just convention that bitfields on big endian systems
: start from the most significant bit, and those on little endian systems
: start from the least significant bit?  (My thinking is that endianness
: usually refers to byte ordering and not so much bit ordering.)

This is a convention that goes back a very long ways.  It was this way
in the mid 1980's, and has remained true through today.  I've
personally observed this to be the case on many different MIPS
compilers, ARM compilers and SPARC compilers over the years.

Warner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]