Standard-safe arithmetic shift right in C
Last month I learned that the behavior of right-shifting a signed integer in C is implementation-defined. That is, say you have the following C code: int foo(void) { int x = -128; unsigned int y = 3; return x >> y; } (This should have highlighting but I don't feel