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 new Int64Value(0); if (a.hasValue(1)) return b; if (b.hasValue(1)) return a; return createUnknown(); }