H. S. Teoh:
OK, makes sense. But what about if only the most significant bit is 1? Wouldn't that also be an overflow? So you're essentially checking if the topmost n bits are zero, where n is the number of bits you wish to shift by.
Of course. https://issues.dlang.org/show_bug.cgi?id=13231 Bye, bearophile