Skip to content

missing explanation: bit shift behavior with negative offsets or offsets ≥ word size

In the section on logical operators about shl/<< and shr/>>, the behavior for shift offsets outside the range 0..bitSizeOf(ALUSInt)-1 should be explained. As evidenced by a recent forum topic, it is a reasonable expectation qWord(1) shl 64 yields 0 (zero), when in fact it does not (at least not on x86/ARM platforms).

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information