what does this operator stands for ^=

Status
Not open for further replies.

RubyS

Newbie level 6
Joined
Sep 12, 2012
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Bangalore
Activity points
1,368
I was reading some paper regarding galios field and a snippet of code was given as shown below

for i = 0:7
for j = 0:7
result [i+j] ^= a[j] & b

in this i m not able to understand the operator "^=".Is this some reduction operator..kindly help
 

In BASIC there is a shorthand expression that goes:

result += a

In longhand it means:

result = result + a

There's a chance your code uses a similar type of shorthand.

The '^' operator normally means 'raise to the power of'.
 

I was reading some paper regarding galios field and a snippet of code was given as shown below

Code of which language?

I haven't seen for i = 0:7 in C but maybe the XOR operator is the same.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…