Conversation
Notices
-
Embed this notice
snacks (snacks@netzsphaere.xyz)'s status on Friday, 04-Jul-2025 23:36:40 JST snacks
@twinspin6 no, it's at least one bit -
Embed this notice
snacks (snacks@netzsphaere.xyz)'s status on Friday, 04-Jul-2025 23:40:16 JST snacks
@twinspin6 i don't think c even has a concept of data types whose size isn't byte aligned? -
Embed this notice
Taylan (Now 18% More Deranged) (taylan@fedi.feministwiki.org)'s status on Saturday, 05-Jul-2025 00:05:00 JST Taylan (Now 18% More Deranged)
@bartholin @snacks @twinspin6
AFAIK there's no guarantees about it in any standard, but in practice yes.snacks likes this. -
Embed this notice
bartholin (bartholin@fops.cloud)'s status on Saturday, 05-Jul-2025 00:05:02 JST bartholin
@snacks @twinspin6
struct foo {
int n1 : 4;
int n2: 4;
};
gives you two fields of 4 bits in one byte, if I'm correct -
Embed this notice
snacks (snacks@netzsphaere.xyz)'s status on Saturday, 05-Jul-2025 00:08:04 JST snacks
@meeper @twinspin6 is a bitfield not byte aligned? -
Embed this notice
meeper (meeper@shitposter.world)'s status on Saturday, 05-Jul-2025 00:08:05 JST meeper
@snacks @twinspin6 bitfields? -
Embed this notice
meeper (meeper@shitposter.world)'s status on Saturday, 05-Jul-2025 00:09:00 JST meeper
@snacks @twinspin6 yeah the bitfield itself is snacks likes this.
-
Embed this notice