What do the symbols ⊞
and ⊕
mean? I'm trying to understand them to make an app.
It's on http://en.wikipedia.org/wiki/File:XXTEA.png
Software Engineering Stack Exchange is a question and answer site for professionals, academics, and students working within the systems development life cycle. It only takes a minute to sign up.
Sign up to join this communityWhat do the symbols ⊞
and ⊕
mean? I'm trying to understand them to make an app.
It's on http://en.wikipedia.org/wiki/File:XXTEA.png
I know for a fact that ⊕ means XOR, or eXclusive OR. With the variables A and B, Normal OR will return true if
XOR on the other hand returns true only if
I'm not too sure about ⊞ though. In Unicode its under "SQUARED PLUS", but I don't know how that works in an algorithm
I know this is old, but I'll answer the question anyway for future readers:
⊕
is the XOR function, where two identical bits produce 0
, and two different bits produce 1
.⊞
is a modular addition function, where the modulus must be clearly defined in advance (such as a ⊞ b = a + b mod 2^32
).<<n
is the left logical bit-shift operator, shifted n-bits (not circular). Left shifting 1-bit would be equivalent to multiplying by 2.>>n
in the signed right logical bit-shift operator, shifted n-bits (not circular). Right shifting 1-bit would be equivalent to dividing by 2 and taking the floor of the result.