Int128.opBinary

Int128 opBinary(string op)(Int128 op2) if (op == "+" || op == "-" || op == "*" || op == "/" || op == "%" || op == "&" || op == "|" || op == "^") const

Support binary arithmetic operators + - * / % & | ^ << >> >>>

Parameters

opone of the arithmetic binary operators
op2second 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)) const

ditto

Int128 opBinary(string op, IntLike)(auto ref IntLike op2) if ((op == "+" || op == "-" || op == "*" || op == "/" || op == "%" || op == "&" || op == "|" || op == "^") && is(IntLike : long) && !__traits(isIntegral, IntLike)) const

ditto

Int128 opBinary(string op)(long op2) if (op == "<<") const

ditto

Int128 opBinary(string op)(long op2) if (op == ">>") const

ditto

Int128 opBinary(string op)(long op2) if (op == ">>>") const

ditto