by fsckboy · 8mo ago · 0 comments
this is nonsense. I don't know what they expect would happen, but who cares? I wouldn't shift a 12 bit field by more than ±11 bits.
you can shift the "enclosing" word of memory if you want, just put the original definition in a union.
If you assume that int is 32 bits, you can left shift an 12 bit field by 19 bits without hitting the sign bit.