Post B6Fc8idVgraZaXPtho by nullenvk@yourwalls.today
(DIR) More posts by nullenvk@yourwalls.today
(DIR) Post #B6Fc8idVgraZaXPtho by nullenvk@yourwalls.today
0 likes, 0 repeats
the horrors of addressing 12-bit packed values
(DIR) Post #B6Fc8iqGvPnUE7O5b6 by wolf480pl@mstdn.io
0 likes, 0 repeats
@nullenvkI'm guessing this:union { char bytes[3]; struct __attribute__((packed)) { int lo:12; int hi:12; };};doesn't do the right thing?
(DIR) Post #B6Fwwc6OFyFOswzhFw by amonakov@mastodon.gamedev.place
0 likes, 0 repeats
@wolf480pl @nullenvk which nibble is which in the middle byte is implementation-defined, and GCC has a few targets where it's big-endian-like (including both IBM targets, POWER and S/390): https://godbolt.org/z/s1oG6ozKa
(DIR) Post #B6FzqGDb0U138g1ipU by wolf480pl@mstdn.io
0 likes, 0 repeats
@amonakovhmm yeah and I imagine the only reason someone would use FAT12 on those systems is to interoperate with DOS, so host-specific nibble order won't do :/ @nullenvk