Example #1
0
 public static Int64Value Mul(Int64Value a, Int64Value b)
 {
     if (a.AllBitsValid() && b.AllBitsValid())
     {
         return(new Int64Value(a.Value * b.Value));
     }
     if (a.IsZero() || b.IsZero())
     {
         return(Zero);
     }
     if (a.HasValue(1))
     {
         return(b);
     }
     if (b.HasValue(1))
     {
         return(a);
     }
     return(CreateUnknown());
 }
		public static Int64Value Mul(Int64Value a, Int64Value b) {
			if (a.AllBitsValid() && b.AllBitsValid())
				return new Int64Value(a.Value * b.Value);
			if (a.IsZero() || b.IsZero())
				return Zero;
			if (a.HasValue(1))
				return b;
			if (b.HasValue(1))
				return a;
			return CreateUnknown();
		}