Sujet : Re: what you can do with bitfields
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 29. Nov 2024, 03:46:17
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vib9tp$q0vu$2@dont-email.me>
References : 1
User-Agent : Pan/0.161 (Chasiv Yar; )
On Thu, 28 Nov 2024 14:39:43 +0100, fir wrote:
i use them but i never fully chcked what i can do with them ...
One problem with C is that bitfields can only have static offsets and
sizes. If these were dynamic, you could express much more powerful
manipulations more conveniently than with shifting and masking.