NewTOAPIA.Net.Rtp.GF16.Add C# (CSharp) Method

Add() public static method

Add two number in GF8
The subtraction is the same as the addition because with Galois fields, each number is its own negative. So there is no need to have a Sub method
public static Add ( UInt16 a, UInt16 b ) : UInt16
a System.UInt16 First number
b System.UInt16 Second number
return System.UInt16
        public static UInt16 Add (UInt16 a, UInt16 b)
        {
            // The addition is done with a exclusive-or
            return (UInt16)(a ^ b);
        }