Int128.opBinary
Int128 opBinary(string op)(Int128 op2) if (op == "+" || op == "-" ||
op == "*" || op == "/" || op == "%" ||
op == "&" || op == "|" || op == "^") constSupport binary arithmetic operators + - * / % & | ^ << >> >>>
Parameters
op | one of the arithmetic binary operators |
op2 | second operand |
Returns
value after the operation is applied
Int128 opBinary(string op, Int)(const Int op2) if ((op == "+" || op == "-" ||
op == "*" || op == "/" || op == "%" ||
op == "&" || op == "|" || op == "^") &&
is(Int : long) && __traits(isIntegral, Int)) constditto
Int128 opBinary(string op, IntLike)(auto ref IntLike op2) if ((op == "+" || op == "-" ||
op == "*" || op == "/" || op == "%" ||
op == "&" || op == "|" || op == "^") &&
is(IntLike : long) && !__traits(isIntegral, IntLike)) constditto
Int128 opBinary(string op)(long op2) if (op == "<<") constditto
Int128 opBinary(string op)(long op2) if (op == ">>") constditto
Int128 opBinary(string op)(long op2) if (op == ">>>") constditto