Exemple #1
0
        public void Swap(ref Int65 a)
        {
            var avalue = a.value;
            var asign  = a.sign;

            a.value = value;
            a.sign  = sign;
            value   = avalue;
            sign    = asign;
        }
Exemple #2
0
 public void SetDifference(ref Int65 a, ref Int65 b)
 {
     if (a.sign == b.sign)
     {
         if (a.value >= b.value)
         {
             value = a.value - b.value;
             sign  = a.sign;
         }
         else
         {
             value = b.value - a.value;
             sign  = -a.sign;
         }
     }
     else
     {
         value = a.value + b.value;
         sign  = a.sign;
     }
 }
Exemple #3
0
 public void Set(ref Int65 a)
 {
     value = a.value;
     sign  = a.sign;
 }