Example #1
0
 public override int GetBehaviorHashCode()
 {
     return
         (ConstantMemoryType.GetHashCode() ^
          Generator.GetHashCode() ^
          ConstValue ^
          HasCE.GetHashCode() ^
          HasSCLR.GetHashCode() ^
          MultiplierConstruction.GetHashCode() ^
          MultType.GetHashCode() ^
          OptGoal.GetHashCode() ^
          OutputWidthHigh ^
          OutputWidthLow ^
          PipeStages ^
          PortAType.GetHashCode() ^
          PortAWidth ^
          PortBType.GetHashCode() ^
          PortBWidth ^
          ResultType.GetHashCode() ^
          RoundPoint ^
          SCLR_CE_Priority.GetHashCode() ^
          UseCustomOutputWidth.GetHashCode() ^
          UseRounding.GetHashCode() ^
          ZeroDetect.GetHashCode());
 }
Example #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 19;
         int mult = 13;
         hash = hash * mult + Outcome.GetHashCode();
         hash = hash * mult + Rounds.GetHashCode();
         hash = hash * mult + ResultType.GetHashCode();
         return(hash);
     }
 }
Example #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResultType != 0)
            {
                hash ^= ResultType.GetHashCode();
            }
            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }