Re: xor as a lazy comparison

From: Grant Coady
Date: Wed Jul 27 2005 - 19:06:12 EST

On Wed, 27 Jul 2005 15:58:48 -0400, "linux-os \(Dick Johnson\)" <linux-os@xxxxxxxxxxxx> wrote:
>I think the XOR thread was started by somebody as a ruse or
>a joke. XOR will always destroy the value of an operand.

You missed the part where somebody checked assembler output and
found compiler optimised xor to cmp as nothing referenced the result.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at