Re: what you can do with bitfields

Liste des GroupesRevenir à cl c  
Sujet : Re: what you can do with bitfields
De : profesor.fir (at) *nospam* gmail.com (fir)
Groupes : comp.lang.c
Date : 30. Nov 2024, 16:50:35
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <61b392a7f6f2e8974c7bf026e904c63c29ab114a@i2pn2.org>
References : 1 2
User-Agent : Mozilla/5.0 (Windows NT 10.0; WOW64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.19
Lawrence D'Oliveiro pisze:
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.
 
what do you mean?
i must check hovever how this static work at all.. i used them
and not so rarely but only simple cases usually for solo bit flags

Date Sujet#  Auteur
28 Nov 24 * what you can do with bitfields5fir
29 Nov 24 `* Re: what you can do with bitfields4Lawrence D'Oliveiro
30 Nov 24  `* Re: what you can do with bitfields3fir
30 Nov 24   `* Re: what you can do with bitfields2BGB
1 Dec 24    `- Re: what you can do with bitfields1fir

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal