On Sun, Sep 8, 2013 at 1:49 PM, Matthieu Monrocq <[email protected] > wrote:
> Actually, for bitfields the types into which the bits are packed are not > left to the compiler. If you said "int c : 4", then it will use a "int". > > If you have: > > int a : 24; > int b : 24; > int c : 16; > > and int is 32 bits on your platform, then a will be 24 somewhere in 32 > bits, same thing for b, and c will be 16 bits somewhere in 32 bits; for a > single bit field cannot be split among several underlying integers. > > I didn't get that understanding from my reading of the C11 standard; which standard and section says this? I could have misunderstood.
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
