I bet the person who decided to store gender as a 32 bit value instead of a single bit is feeling utterly proud of his foresight right now.
Comment on what is my purpose rule
dual_sport_dork@lemmy.world 7 months agoGotta love Microsoft. “We need this to store either a 0 or a 1. How many bits should we take up, boss?”
32.
MacNCheezus@lemmy.today 7 months ago
Technus@lemmy.zip 7 months ago
It looks to be the smallest supported integer type: …microsoft.com/…/25cce700-7fcf-4bb6-a2f3-0f6d0843…
I don’t know much about the registry file format or the Windows APIs, but it’s possible that smaller data types wouldn’t save space due to alignment requirements for the datastructures.
Bezier@suppo.fi 7 months ago
Using more than one bit for true/false isn’t just a microsoft thing, and not really as ridiculous as it sounds. If you have 32 bits in one memory address, you can either: