Top "Xor" questions

For questions involving exclusive-or operations (typically bitwise).

Keyword for exclusive or in ruby?

Does Ruby have a plain-English keyword for exclusive or, like they have "and" and "or"? If not, is this because …

ruby boolean xor
XOR two Binary Strings c++

I have two strings as follows : STRING1 : 011011110011000 STRING2 : 011001000001000 EXPECTED OUTPUT : 000010110010000 However, when i try to XOR them(bit-wise) using the …

c++ xor bitwise-xor
How to use Excel to calculate bitwise XOR in hexadecimal format?

I have two cells with a string of bits: 1747F6001E00DB2XXXXX28FE5257645C and 1C6262C8DBF510F655…

excel hex xor bitwise-xor vba
Why does the xor operator on two bytes produce an int?

//key & hash are both byte[] int leftPos = 0, rightPos = 31; while(leftPos < 16) { //possible loss of precision. required: byte, found: int …

java casting byte numeric xor
XOR of three values

What is the simplest way to do a three-way exclusive OR? In other words, I have three values, and I …

language-agnostic logic boolean xor boolean-expression
Postgres SQL Exclusive OR (XOR) CHECK CONSTRAINT, is it possible?

Is it possible to make a XOR CHECK CONSTRAINT? I'm doing it on a test table I just made that …

sql postgresql constraints xor
What does Exclusive in XOR really mean?

Maybe this is just obvious to everyone but can someone explain where XOR (or Exclusive-OR) got its name from? What …

language-agnostic math logic boolean xor
Mathematical (Arithmetic) representation of XOR

I have spent the last 5 hours searching for an answer. Even though I have found many answers they have not …

math boolean logic xor algebra
What's the difference between XOR and NOT-EQUAL-TO?

My question uses Java as an example, but I guess it applies to probably all. Is there any practical difference …

boolean xor evaluation
Most Efficient way to set Register to 1 or (-1)

I am taking an assembly course now, and the guy who checks our home assignments is a very pedantic old-school …

assembly performance xor cpu-registers x86-16