Oct 27, 2012 #1 R 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
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
Oct 27, 2012 #2 B BradtheRad Super Moderator Staff member Joined Apr 1, 2011 Messages 15,187 Helped 2,900 Reputation 5,812 Reaction score 2,982 Trophy points 1,393 Location Minneapolis, Minnesota, USA Activity points 113,781 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'.
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'.
Oct 27, 2012 #3 keith1200rs Super Moderator Staff member Joined Oct 9, 2009 Messages 10,865 Helped 2,065 Reputation 4,130 Reaction score 1,596 Trophy points 1,403 Location Yorkshire, UK Activity points 57,270 Assuming it is C, it is a standard operator https://en.m.wikipedia.org/wiki/Operators_in_C_and_C++ Keith
Assuming it is C, it is a standard operator https://en.m.wikipedia.org/wiki/Operators_in_C_and_C++ Keith
Oct 27, 2012 #4 alexan_e Administrator Joined Mar 16, 2008 Messages 11,888 Helped 2,021 Reputation 4,158 Reaction score 2,031 Trophy points 1,393 Location Greece Activity points 64,371 RubyS said: I was reading some paper regarding galios field and a snippet of code was given as shown below Click to expand... Code of which language? I haven't seen for i = 0:7 in C but maybe the XOR operator is the same.
RubyS said: I was reading some paper regarding galios field and a snippet of code was given as shown below Click to expand... Code of which language? I haven't seen for i = 0:7 in C but maybe the XOR operator is the same.
Oct 27, 2012 #5 keith1200rs Super Moderator Staff member Joined Oct 9, 2009 Messages 10,865 Helped 2,065 Reputation 4,130 Reaction score 1,596 Trophy points 1,403 Location Yorkshire, UK Activity points 57,270 ^ is also XOR in Verilog. Keith